com.wallstop-studios.unity-helpers 2.0.0-rc77.4 → 2.0.0-rc77.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/AssetProcessors/SpriteLabelProcessor.cs +5 -7
- package/Runtime/Binaries/Microsoft.Bcl.AsyncInterfaces.xml +92 -37
- package/Runtime/Binaries/System.Text.Encodings.Web.xml +1070 -927
- package/Runtime/Binaries/System.Text.Json.xml +7842 -4556
- package/Runtime/Core/Extension/StringExtensions.cs +1 -2
- package/Runtime/Core/Helper/Helpers.cs +31 -8
- package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs +0 -1
- package/Runtime/Protobuf-Net/System.Collections.Immutable.xml +6719 -5287
- package/Runtime/Protobuf-Net/System.Runtime.CompilerServices.Unsafe.xml +337 -286
- package/Runtime/Tags/CosmeticEffectData.cs +2 -2
- package/Tests/Runtime/Helper/ReflectionHelperTests.cs +16 -20
- package/package.json +2 -1
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
public static class StringExtensions
|
|
10
10
|
{
|
|
11
|
-
private static ThreadLocal<StringBuilder> StringBuilderCache = new(
|
|
12
|
-
() => new StringBuilder()
|
|
11
|
+
private static ThreadLocal<StringBuilder> StringBuilderCache = new(() => new StringBuilder()
|
|
13
12
|
);
|
|
14
13
|
|
|
15
14
|
private static readonly HashSet<char> PascalCaseSeparators = new()
|
|
@@ -28,16 +28,35 @@
|
|
|
28
28
|
StringComparer.OrdinalIgnoreCase
|
|
29
29
|
);
|
|
30
30
|
|
|
31
|
-
public static bool
|
|
31
|
+
public static bool IsRunningInBatchMode => Application.isBatchMode;
|
|
32
|
+
|
|
33
|
+
public static bool IsRunningInContinuousIntegration
|
|
32
34
|
{
|
|
33
35
|
get
|
|
34
36
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if (
|
|
38
|
+
!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("GITHUB_ACTIONS"))
|
|
39
|
+
)
|
|
40
|
+
{
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("CI")))
|
|
45
|
+
{
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("JENKINS_URL")))
|
|
50
|
+
{
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("GITLAB_CI")))
|
|
55
|
+
{
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return false;
|
|
41
60
|
}
|
|
42
61
|
}
|
|
43
62
|
|
|
@@ -45,7 +64,7 @@
|
|
|
45
64
|
|
|
46
65
|
public static string[] GetAllSpriteLabelNames()
|
|
47
66
|
{
|
|
48
|
-
if (
|
|
67
|
+
if (IsRunningInContinuousIntegration || IsRunningInBatchMode)
|
|
49
68
|
{
|
|
50
69
|
return Array.Empty<string>();
|
|
51
70
|
}
|
|
@@ -61,6 +80,10 @@
|
|
|
61
80
|
foreach (string guid in guids)
|
|
62
81
|
{
|
|
63
82
|
string path = AssetDatabase.GUIDToAssetPath(guid);
|
|
83
|
+
if (!path.StartsWith("Assets", StringComparison.OrdinalIgnoreCase))
|
|
84
|
+
{
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
64
87
|
Object asset = AssetDatabase.LoadMainAssetAtPath(path);
|
|
65
88
|
if (asset == null)
|
|
66
89
|
{
|
|
@@ -360,7 +360,6 @@
|
|
|
360
360
|
/// If false, decorations with the same tag (compared OrdinalIgnoreCase) will cause the registration to fail.
|
|
361
361
|
/// </param>
|
|
362
362
|
/// <returns>True if the decoration was added, false if the decoration was not added.</returns>
|
|
363
|
-
|
|
364
363
|
public bool AddDecoration(
|
|
365
364
|
Func<string, bool> predicate,
|
|
366
365
|
Func<string, object, string> format,
|