Skip to content

Commit a5b314f

Browse files
committed
fix: add vuplex webview compilation flags for mobile platforms
1 parent ed4c3ce commit a5b314f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,10 @@ private IPassportWebView CreatePlatformWebView()
402402
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_EDITOR && UNITY_EDITOR_WIN))
403403
PassportLogger.Info($"{TAG} Creating Windows WebView (UWB)");
404404
return new WindowsPassportWebView(rawImage, this);
405-
#elif UNITY_IOS
405+
#elif UNITY_IOS && VUPLEX_WEBVIEW
406406
PassportLogger.Info($"{TAG} Creating iOS WebView (Vuplex)");
407407
return new iOSPassportWebView(rawImage);
408-
#elif UNITY_ANDROID
408+
#elif UNITY_ANDROID && VUPLEX_WEBVIEW
409409
PassportLogger.Info($"{TAG} Creating Android WebView (Vuplex)");
410410
return new AndroidVuplexWebView(rawImage);
411411
#elif (UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX) && VUPLEX_WEBVIEW

0 commit comments

Comments
 (0)