Skip to content

Commit 0bfa1ab

Browse files
committed
fix: compilation flags when initialising"x browser client
1 parent f0dbb02 commit 0bfa1ab

File tree

1 file changed

+4
-2
lines changed
  • src/Packages/Passport/Runtime/Scripts/Public

1 file changed

+4
-2
lines changed

src/Packages/Passport/Runtime/Scripts/Public/Passport.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#if !IMMUTABLE_CUSTOM_BROWSER
55
using VoltstroStudios.UnityWebBrowser.Core;
66
#endif
7-
#else
7+
#elif (UNITY_ANDROID && !UNITY_EDITOR_WIN) || (UNITY_IPHONE && !UNITY_EDITOR_WIN) || UNITY_STANDALONE_OSX
88
using Immutable.Browser.Gree;
99
#endif
1010
using Immutable.Passport.Event;
@@ -152,9 +152,11 @@ private async UniTask Initialise(
152152
await ((WebBrowserClient)this.webBrowserClient).Init(engineStartupTimeoutMs);
153153
#endif
154154
}
155-
#else
155+
#elif (UNITY_ANDROID && !UNITY_EDITOR_WIN) || (UNITY_IPHONE && !UNITY_EDITOR_WIN) || UNITY_STANDALONE_OSX
156156
// Initialise default browser client for Android, iOS, and macOS
157157
webBrowserClient = new GreeBrowserClient();
158+
#else
159+
throw new PassportException("Platform not supported");
158160
#endif
159161

160162
// Set up browser communication

0 commit comments

Comments
 (0)