Skip to content

Commit

Permalink
Fix errors on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BellringerQuinn committed Dec 18, 2023
1 parent c56001b commit b5efe10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Assets/Editor/SetUrlScheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
using Sequence.Authentication.ScriptableObjects;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using UnityEngine;
#if UNITY_IOS || UNITY_STANDALONE_OSX
using UnityEditor.iOS.Xcode;
#endif

namespace Editor
{
Expand Down Expand Up @@ -41,6 +43,7 @@ public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProj

private static void SetPlistUrlScheme()
{
#if UNITY_IOS || UNITY_STANDALONE_OSX
PlistDocument plist = new PlistDocument();
plist.ReadFromFile(_plistPath);

Expand Down Expand Up @@ -69,6 +72,7 @@ private static void SetPlistUrlScheme()
}

plist.WriteToFile(_plistPath);
#endif
}
}
}
4 changes: 2 additions & 2 deletions Assets/SequenceExamples/Scripts/UI/LoginPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Sequence.Demo
{
public class LoginPanel : UIPanel
{
public string UrlScheme = "sdk-powered-by-sequence";
public static string UrlScheme = "sdk-powered-by-sequence";

private TransitionPanel _transitionPanel;
private LoginPage _loginPage;
Expand Down Expand Up @@ -76,7 +76,7 @@ private void OnMFAEmailSentHandler(string email)
private static void PassDeepLinkViaLocalServer()
{
var args = System.Environment.GetCommandLineArgs();
if (args.Length > 1 && args[1].StartsWith(OpenIdAuthenticator.UrlScheme))
if (args.Length > 1 && args[1].StartsWith(UrlScheme))
{
var socketConnection = new TcpClient("localhost", OpenIdAuthenticator.WINDOWS_IPC_PORT);
var bytes = System.Text.Encoding.ASCII.GetBytes("@@@@" + args[1] + "$$$$");
Expand Down

0 comments on commit b5efe10

Please sign in to comment.