Skip to content

Commit 1abcfb8

Browse files
committed
fix: don't expose internals to assemblies that may not exist when built
1 parent bc37fd3 commit 1abcfb8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
using System.Runtime.CompilerServices;
22
#if SCRIPTABLE_VALUES_PROPERTIES
33
using Unity.Properties;
4-
#endif
4+
#endif // SCRIPTABLE_VALUES_PROPERTIES
55

6+
#if UNITY_EDITOR
67
[assembly: InternalsVisibleTo("Hertzole.ScriptableValues.Editor")]
8+
#endif // UNITY_EDITOR
9+
#if UNITY_INCLUDE_TESTS
710
[assembly: InternalsVisibleTo("Hertzole.ScriptableValues.Tests")]
811
[assembly: InternalsVisibleTo("Hertzole.ScriptableValues.Tests.Editor")]
12+
#endif // UNITY_INCLUDE_TESTS
913

1014
#if SCRIPTABLE_VALUES_PROPERTIES
1115
[assembly: GeneratePropertyBagsForAssembly]
12-
#endif
16+
#endif // SCRIPTABLE_VALUES_PROPERTIES

0 commit comments

Comments
 (0)