Skip to content

Commit e98f7e7

Browse files
committed
feat: add compilation flags around all uwb files
1 parent c37d7da commit e98f7e7

File tree

71 files changed

+460
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+460
-97
lines changed

src/Packages/Passport/Runtime/Resources/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ private async UniTask Initialise(
191191
this.webBrowserClient = new UwbWebView();
192192
await ((UwbWebView)this.webBrowserClient).Init(engineStartupTimeoutMs);
193193
readySignalReceived = true;
194-
195194
#endif
196195
}
197196
#elif (UNITY_ANDROID && !UNITY_EDITOR_WIN) || (UNITY_IPHONE && !UNITY_EDITOR_WIN) || UNITY_STANDALONE_OSX || UNITY_WEBGL

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/Runtime/NativeArrayExtensions.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN))
2+
13
using System;
24
using Unity.Collections;
35
using Unity.Collections.LowLevel.Unsafe;
@@ -51,4 +53,6 @@ public static unsafe void CopyTo<T>(this NativeArray<T> array, Span<T> dst)
5153
}
5254
}
5355
}
54-
}
56+
}
57+
58+
#endif

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/Runtime/NativeSliceExtensions.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN))
2+
13
using System;
24
using Unity.Collections;
35
using Unity.Collections.LowLevel.Unsafe;
@@ -51,4 +53,6 @@ public static unsafe void CopyTo<T>(this NativeSlice<T> array, Span<T> dst)
5153
}
5254
}
5355
}
54-
}
56+
}
57+
58+
#endif

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/Runtime/SpanExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN))
2+
13
using System;
24
using Unity.Collections;
35

@@ -61,3 +63,6 @@ public static NativeArray<T> ToNativeArray<T>(this ReadOnlySpan<T> source, Alloc
6163
}
6264
}
6365
}
66+
67+
68+
#endif

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/Runtime/Utils.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN))
2+
13
using System;
24
using System.Diagnostics;
35
using Unity.Collections.LowLevel.Unsafe;
@@ -23,4 +25,6 @@ internal static void CheckCopyLengths(int srcLength, int dstLength)
2325
throw new ArgumentException("source and destination length must be the same");
2426
}
2527
}
26-
}
28+
}
29+
30+
#endif
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
{
2-
"name": "VoltstroStudios.NativeArraySpanExtensions",
3-
"rootNamespace": "VoltstroStudios.NativeArraySpanExtensions",
4-
"references": [],
5-
"includePlatforms": [],
6-
"excludePlatforms": [],
7-
"allowUnsafeCode": true,
8-
"overrideReferences": false,
9-
"precompiledReferences": [],
10-
"autoReferenced": true,
11-
"defineConstraints": [],
12-
"versionDefines": [],
13-
"noEngineReferences": false
2+
"name": "VoltstroStudios.NativeArraySpanExtensions",
3+
"rootNamespace": "VoltstroStudios.NativeArraySpanExtensions",
4+
"references": [],
5+
"includePlatforms": [
6+
"Editor",
7+
"WindowsStandalone64"
8+
],
9+
"excludePlatforms": [],
10+
"allowUnsafeCode": true,
11+
"overrideReferences": false,
12+
"precompiledReferences": [],
13+
"autoReferenced": true,
14+
"defineConstraints": [],
15+
"versionDefines": [],
16+
"noEngineReferences": false
1417
}

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/Plugins/VoltstroStudios.UnityWebBrowser.Shared.dll.meta

Lines changed: 61 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/Runtime/AssemblyInfo.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN))
2+
13
// UnityWebBrowser (UWB)
24
// Copyright (c) 2021-2022 Voltstro-Studios
35
//
@@ -40,3 +42,6 @@
4042
[assembly: InternalsVisibleTo("VoltstroStudios.UnityWebBrowser.Prj")]
4143
[assembly: InternalsVisibleTo("VoltstroStudios.UnityWebBrowser.Editor")]
4244
[assembly: InternalsVisibleTo("VoltstroStudios.UnityWebBrowser.Tests")]
45+
46+
47+
#endif

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/Runtime/Communication/CommunicationLayer.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN))
2+
13
// UnityWebBrowser (UWB)
24
// Copyright (c) 2021-2022 Voltstro-Studios
35
//
@@ -60,4 +62,6 @@ public abstract class CommunicationLayer : ScriptableObject
6062
public abstract void GetIpcSettings(out object outLocation, out object inLocation,
6163
[CanBeNull] out string layerName);
6264
}
63-
}
65+
}
66+
67+
#endif

0 commit comments

Comments
 (0)