Skip to content

Commit 37d246f

Browse files
fix: ios build errors
1 parent cedaa6a commit 37d246f

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/Packages/Passport/Runtime/Scripts/Private/UI/iOSPassportWebView.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_IOS && !UNITY_EDITOR
6+
#if UNITY_IOS || UNITY_EDITOR_OSX
77
using Immutable.Browser.Gree;
88
#endif
99

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ private async UniTask Initialise(
237237
#elif (UNITY_ANDROID && !UNITY_EDITOR_WIN) || (UNITY_IPHONE && !UNITY_EDITOR_WIN) || UNITY_STANDALONE_OSX || UNITY_WEBGL
238238
// Initialise default browser client for Android, iOS, and macOS
239239
_webBrowserClient = new GreeBrowserClient();
240+
await UniTask.CompletedTask;
240241
#else
241242
throw new PassportException("Platform not supported");
242243
#endif

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public class PassportUI : MonoBehaviour
8383
private RawImage rawImage;
8484
// Login completion source removed - OAuth handled by external browser
8585
private bool isInitialized = false;
86-
private bool pointerEnterTriggered = false;
8786
private GameObject bridgeWebViewGameObject;
8887

8988
// Input management
@@ -459,8 +458,6 @@ public void HideLoginUI(bool logMessage = true)
459458
bridgeWebViewGameObject = null; // Clear reference
460459
}
461460

462-
// Reset pointer enter flag for next login
463-
pointerEnterTriggered = false;
464461
}
465462

466463
/// <summary>

0 commit comments

Comments
 (0)