Skip to content

Commit 0174ed3

Browse files
committed
feat: ability to target android or ios and run sdk in windows unity editor
1 parent afffe37 commit 0174ed3

35 files changed

+50
-46
lines changed

sample/Assets/Scripts/UnauthenticatedScript.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async void Start()
4040
#endif
4141

4242
passport = await Passport.Init(
43-
#if UNITY_STANDALONE_WIN
43+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
4444
clientId, environment, redirectUri, logoutRedirectUri, 10000
4545
#else
4646
clientId, environment, redirectUri, logoutRedirectUri

src/Packages/Passport/Editor/PassportPostprocess.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal class PassportPostprocess : IPostprocessBuildWithReport
1919

2020
public void OnPostprocessBuild(BuildReport report)
2121
{
22-
Debug.Log("Passport post-processing...");
22+
Debug.Log($"Passport post-processing...");
2323

2424
if (report.summary.result is BuildResult.Failed || report.summary.result is BuildResult.Cancelled)
2525
return;
@@ -184,6 +184,6 @@ private void CopyFilesTo(string destinationPath)
184184
}
185185
}
186186
}
187-
}
188-
187+
}
188+
189189
#endif

src/Packages/Passport/Runtime/Scripts/Private/Core/BrowserCommunicationsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System;
33
using Cysharp.Threading.Tasks;
44
using System.Collections.Generic;
5-
#if UNITY_STANDALONE_WIN
5+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
66
using VoltstroStudios.UnityWebBrowser.Core;
77
#else
88
using Immutable.Browser.Gree;

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Generic;
22
using System;
3-
#if UNITY_STANDALONE_WIN
3+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
44
using VoltstroStudios.UnityWebBrowser.Core;
55
#else
66
using Immutable.Browser.Gree;
@@ -21,7 +21,7 @@ public class Passport
2121

2222
public static Passport Instance { get; private set; }
2323

24-
#if UNITY_STANDALONE_WIN
24+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
2525
private readonly IWebBrowserClient webBrowserClient = new WebBrowserClient();
2626
#else
2727
private readonly IWebBrowserClient webBrowserClient = new GreeBrowserClient();
@@ -36,7 +36,7 @@ public class Passport
3636

3737
private Passport()
3838
{
39-
#if UNITY_STANDALONE_WIN
39+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
4040
Application.quitting += OnQuit;
4141
#elif UNITY_IPHONE || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
4242
Application.deepLinkActivated += OnDeepLinkActivated;
@@ -57,7 +57,7 @@ private Passport()
5757
/// <param name="logoutRedirectUri">(Android, iOS and macOS only) The URL to which auth will redirect the browser after log out is complete</param>
5858
/// <param name="engineStartupTimeoutMs">(Windows only) Timeout time for waiting for the engine to start (in milliseconds)</param>
5959
public static UniTask<Passport> Init(
60-
#if UNITY_STANDALONE_WIN
60+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
6161
string clientId, string environment, string redirectUri = null, string logoutRedirectUri = null, int engineStartupTimeoutMs = 4000
6262
#else
6363
string clientId, string environment, string redirectUri = null, string logoutRedirectUri = null
@@ -70,7 +70,7 @@ public static UniTask<Passport> Init(
7070
Instance = new Passport();
7171
// Wait until we get a ready signal
7272
return Instance.Initialise(
73-
#if UNITY_STANDALONE_WIN
73+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
7474
engineStartupTimeoutMs
7575
#endif
7676
)
@@ -101,7 +101,7 @@ public static UniTask<Passport> Init(
101101
}
102102

103103
private async UniTask Initialise(
104-
#if UNITY_STANDALONE_WIN
104+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
105105
int engineStartupTimeoutMs
106106
#endif
107107
)
@@ -110,7 +110,7 @@ int engineStartupTimeoutMs
110110
{
111111
BrowserCommunicationsManager communicationsManager = new BrowserCommunicationsManager(webBrowserClient);
112112
communicationsManager.OnReady += () => readySignalReceived = true;
113-
#if UNITY_STANDALONE_WIN
113+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
114114
await ((WebBrowserClient)webBrowserClient).Init(engineStartupTimeoutMs);
115115
#endif
116116
passportImpl = new PassportImpl(communicationsManager);
@@ -125,7 +125,7 @@ int engineStartupTimeoutMs
125125
}
126126
}
127127

128-
#if UNITY_STANDALONE_WIN
128+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
129129
private void OnQuit()
130130
{
131131
// Need to clean up UWB resources when quitting the game in the editor

src/Packages/Passport/Runtime/ThirdParty/Gree/Assets/Plugins/WebViewObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public void LaunchAuthURL(string url, string redirectUri)
295295
if (webView == IntPtr.Zero)
296296
return;
297297
_CWebViewPlugin_LaunchAuthURL(webView, url, redirectUri != null ? redirectUri : "");
298-
#elif UNITY_IPHONE
298+
#elif UNITY_IPHONE && !UNITY_EDITOR_WIN
299299
if (webView == IntPtr.Zero)
300300
return;
301301
_CWebViewPlugin_LaunchAuthURL(webView, url);

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Communication/CommunicationLayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Communication/TCPCommunicationLayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/BaseUwbClientManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/Engines/Engine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/Engines/EngineConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/WebBrowserArgsBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/WebBrowserClient.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios
@@ -248,6 +248,10 @@ public IWebBrowserLogger Logger
248248

249249
public WebBrowserClient()
250250
{
251+
#if (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
252+
UnityEngine.Debug.LogWarning("Native Android and iOS WebViews cannot run in the Editor, so the Windows WebView is currently used to save your development time." +
253+
" Testing your game on an actual device or emulator is recommended to ensure proper functionality.");
254+
#endif
251255
}
252256

253257
/// <summary>
@@ -312,7 +316,7 @@ public async UniTask Init(int engineStartupTimeout = 4000)
312316
#if UNITY_EDITOR
313317
filePath = Constants.SCHEME_FILE + Path.GetFullPath($"{PASSPORT_PACKAGE_RESOURCES_DIRECTORY}{Constants.PASSPORT_HTML_FILE_NAME}");
314318
#else
315-
#if UNITY_STANDALONE_WIN
319+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
316320
filePath = Constants.SCHEME_FILE + Path.GetFullPath(Application.dataPath) + Constants.PASSPORT_DATA_DIRECTORY_NAME + Constants.PASSPORT_HTML_FILE_NAME;
317321
#endif
318322
#endif

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/WebBrowserCommunicationsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Editor/EngineManagement/EngineManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// This project is under the MIT license. See the LICENSE.md file for more details.
55

6-
#if UNITY_EDITOR && UNITY_STANDALONE_WIN
6+
#if UNITY_EDITOR && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN))
77

88
using System.IO;
99
using System.Linq;

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Events/OnFullscreenChange.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Events/OnLoadFinish.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Events/OnLoadStart.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Events/OnLoadingProgressChange.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Events/OnTitleChange.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Events/OnUrlChange.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Helper/ProcessExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Helper/WebBrowserUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios
@@ -83,7 +83,7 @@ public static string GetBrowserEngineProcessPath(Engine engine)
8383
return EngineManager.GetEngineProcessFullPath(engine);
8484
#else
8585
string path = $"{GetBrowserEnginePath(null)}/{engine.GetEngineExecutableName()}";
86-
#if UNITY_STANDALONE_WIN
86+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
8787
path += ".exe";
8888
#endif
8989
return Path.GetFullPath(path);

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Input/WebBrowserInputHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Input/WebBrowserInputHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Input/WebBrowserInputSystemHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Input/WebBrowserOldInputHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Logging/DefaultUnityWebBrowserLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Logging/IWebBrowserLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Logging/JsonLogSeverityConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Logging/JsonLogStructure.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Logging/ProcessLogHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/UwbIsConnectedException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/UwbIsNotConnectedException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/UwbIsNotReadyException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_STANDALONE_WIN
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
22

33
// UnityWebBrowser (UWB)
44
// Copyright (c) 2021-2022 Voltstro-Studios

0 commit comments

Comments
 (0)