Closed sacOO7 closed 1 year ago
➤ Automation for Jira commented:
The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3338
Instead of detecting the unity platform at compile time ( using conditional compilation).
It can be detected at runtime https://docs.unity3d.com/ScriptReference/RuntimePlatform.html, this will necessitate the use of scanning unity classes using reflection and !PACKAGE
conditional compilation flag
same as https://github.com/ably/ably-dotnet/blob/d7c9c85ddb745b7cee3c3d6c187f02607131e274/src/IO.Ably.NETStandard20/Properties/AssemblyInfo.cs#L14-L19
No need to use reflection if UnityEngine.dll
can be imported and used directly as per
https://vraulet.medium.com/developing-unity-code-outside-of-the-unity-editor-7e0e5334dd3e