Skip to content

Commit 29165db

Browse files
committed
fix: linting
1 parent 8ae2f74 commit 29165db

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Packages/Passport/Editor/VuplexSymbolManager.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ namespace Immutable.Passport.Editor
1212
public static class VuplexSymbolManager
1313
{
1414
private const string VUPLEX_SYMBOL = "VUPLEX_WEBVIEW";
15-
15+
1616
static VuplexSymbolManager()
1717
{
1818
// Run on editor startup and after assembly reload
1919
EditorApplication.delayCall += CheckAndUpdateVuplexSymbol;
2020
}
21-
21+
2222
private static void CheckAndUpdateVuplexSymbol()
2323
{
2424
try
2525
{
2626
// Check if Vuplex WebView assembly exists
2727
bool vuplexExists = DoesVuplexAssemblyExist();
28-
28+
2929
// Get current build target group
3030
var buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
31-
31+
3232
// Get current scripting define symbols
3333
var currentSymbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(buildTargetGroup);
3434
var symbolList = currentSymbols.Split(';').Where(s => !string.IsNullOrEmpty(s)).ToList();
35-
35+
3636
bool symbolExists = symbolList.Contains(VUPLEX_SYMBOL);
37-
37+
3838
// Update symbol if needed
3939
if (vuplexExists && !symbolExists)
4040
{
@@ -52,7 +52,7 @@ private static void CheckAndUpdateVuplexSymbol()
5252
PlayerSettings.SetScriptingDefineSymbolsForGroup(buildTargetGroup, newSymbols);
5353
Debug.Log($"[VuplexSymbolManager] Removed {VUPLEX_SYMBOL} symbol - Vuplex WebView not found");
5454
}
55-
55+
5656
// Log current status (only once per session to avoid spam)
5757
if (!SessionState.GetBool("VuplexSymbolManager.LoggedStatus", false))
5858
{
@@ -72,25 +72,25 @@ private static void CheckAndUpdateVuplexSymbol()
7272
Debug.LogError($"[VuplexSymbolManager] Error managing Vuplex symbol: {ex.Message}");
7373
}
7474
}
75-
75+
7676
private static bool DoesVuplexAssemblyExist()
7777
{
7878
// Check for Vuplex assembly in multiple ways
79-
79+
8080
// Method 1: Check compiled assemblies
8181
var assemblies = System.AppDomain.CurrentDomain.GetAssemblies();
8282
if (assemblies.Any(a => a.GetName().Name == "Vuplex.WebView"))
8383
{
8484
return true;
8585
}
86-
86+
8787
// Method 2: Check for Vuplex types
8888
var vuplexType = System.Type.GetType("Vuplex.WebView.CanvasWebViewPrefab, Vuplex.WebView");
8989
if (vuplexType != null)
9090
{
9191
return true;
9292
}
93-
93+
9494
// Method 3: Check for Vuplex assets in project
9595
var vuplexAssets = AssetDatabase.FindAssets("CanvasWebViewPrefab");
9696
foreach (var guid in vuplexAssets)
@@ -101,7 +101,7 @@ private static bool DoesVuplexAssemblyExist()
101101
return true;
102102
}
103103
}
104-
104+
105105
return false;
106106
}
107107
}

0 commit comments

Comments
 (0)