Skip to content

Commit fc2dcd4

Browse files
committed
fix: compilation flags
1 parent c34e3c6 commit fc2dcd4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Packages/Passport/Runtime/Scripts/Private/UI/AndroidPassportWebView.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
using UnityEngine.UI;
44
using Immutable.Passport.Core.Logging;
55

6-
#if UNITY_ANDROID && !UNITY_EDITOR
6+
#if UNITY_ANDROID
77
using Immutable.Browser.Gree;
88
#endif
99

1010
namespace Immutable.Passport
1111
{
12-
#if UNITY_ANDROID && !UNITY_EDITOR
12+
#if UNITY_ANDROID
1313
/// <summary>
1414
/// Android implementation of IPassportWebView using Gree WebView (Android WebView)
1515
/// Wraps Gree WebViewObject in a clean, platform-agnostic interface

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ private IPassportWebView CreatePlatformWebView()
197197
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_EDITOR && UNITY_EDITOR_WIN))
198198
PassportLogger.Info($"{TAG} Creating Windows WebView (UWB)");
199199
return new WindowsPassportWebView(rawImage, this);
200-
#elif UNITY_IOS && !UNITY_EDITOR
200+
#elif UNITY_IOS || UNITY_EDITOR_OSX
201201
PassportLogger.Info($"{TAG} Creating iOS WebView (WKWebView)");
202202
return new iOSPassportWebView(rawImage, this);
203-
#elif UNITY_ANDROID && !UNITY_EDITOR
203+
#elif UNITY_ANDROID
204204
PassportLogger.Info($"{TAG} Creating Android WebView");
205205
return new AndroidPassportWebView(rawImage, this);
206206
#elif UNITY_STANDALONE_OSX

0 commit comments

Comments
 (0)