Skip to content

Commit 16d55b3

Browse files
Update SequenceConfig such that it fetches the waas version from the package.json anytime we are in editor. Previously, it would fetch from the text file but this file is only updated when building so anyone testing and upgrading in editor will have the wrong version sent to the api (#194)
1 parent 169e9cb commit 16d55b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Packages/Sequence-Unity/Sequence/SequenceSDK/Config/SequenceConfig.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public static SequenceConfig GetConfig()
4848
{
4949
_config.WaaSVersion = $"1 (Unity {PackageVersionReader.GetVersion()})";
5050
}
51+
52+
#if UNITY_EDITOR
53+
_config.WaaSVersion = $"1 (Unity {PackageVersionReader.GetVersion()})"; // version file is only updated when building
54+
#endif
5155
}
5256

5357
if (_config == null)

0 commit comments

Comments
 (0)