com.amanotes.gdk 0.2.79 → 0.2.80-f1
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/CHANGELOG.md +8 -2
- package/Extra/AmaGDKInstaller.unitypackage +0 -0
- package/Extra/AutoEventQC.unitypackage +0 -0
- package/Extra/CheckDiskSpace.unitypackage +0 -0
- package/Extra/Consent.unitypackage +0 -0
- package/Extra/CrashlyticHook.unitypackage +0 -0
- package/Extra/{SDKVersionTracking.unitypackage.meta → CrashlyticHook.unitypackage.meta} +1 -1
- package/Extra/ForceUpdate.unitypackage +0 -0
- package/Extra/LegacyGDKUpdateHelper.unitypackage +0 -0
- package/Extra/PostProcessor.unitypackage +0 -0
- package/Packages/AmaGDKConfig.unitypackage +0 -0
- package/Packages/AmaGDKExample.unitypackage +0 -0
- package/Packages/AmaGDKTest.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter.PurchaseConnector.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter.unitypackage +0 -0
- package/Packages/FirebaseAnalyticsAdapter.unitypackage +0 -0
- package/Packages/FirebaseRemoteConfigAdapter.unitypackage +0 -0
- package/Packages/IronSourceAdapter.AdQuality.unitypackage +0 -0
- package/Packages/IronSourceAdapter.unitypackage +0 -0
- package/Packages/MaxAdNetworkAdapter.unitypackage +0 -0
- package/Packages/RevenueCatAdapter.unitypackage +0 -0
- package/Packages/SqliteAnalyticsAdapter.unitypackage +0 -0
- package/Runtime/Ad/AmaGDK.Ads.cs +1 -0
- package/Runtime/AmaGDK.cs +1 -1
- package/Runtime/Core/GDKDebug.cs +33 -19
- package/Runtime/GDKAudio/Plugins.meta +8 -0
- package/Runtime/GDKAudio.meta +8 -0
- package/package.json +1 -1
- package/Extra/SDKVersionTracking.unitypackage +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
## [0.2.80-f1] - 2024-12-17
|
|
2
|
+
- [Dev] Add Release Script
|
|
3
|
+
- [Fix] GetStackTrace only works on main thread
|
|
4
|
+
- [Fix] Missing userData parameters in AdEventTracking
|
|
5
|
+
|
|
6
|
+
## [0.2.80] - 2024-11-13
|
|
7
|
+
- [Dev] Don't use obsolete functions
|
|
8
|
+
- [Dev] Add CrashlyticHook
|
|
2
9
|
|
|
3
10
|
## [0.2.79] - 2024-11-13
|
|
4
11
|
- [Dev] Add callbacks for IAP module
|
|
@@ -10,7 +17,6 @@
|
|
|
10
17
|
- [Dev] Track Adapters and Third-party packages used in games
|
|
11
18
|
|
|
12
19
|
## [0.2.77] - 2024-11-07
|
|
13
|
-
- [Release] 0.2.76
|
|
14
20
|
- [Dev] Remove GDKAudio
|
|
15
21
|
- [Dev] Handle format exception in RemoteConfig
|
|
16
22
|
- [Dev] Handle exception of FetchConfig
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/Runtime/Ad/AmaGDK.Ads.cs
CHANGED
|
@@ -345,6 +345,7 @@ namespace Amanotes.Core.Internal
|
|
|
345
345
|
{
|
|
346
346
|
protected AdShowContext context => Ads.context;
|
|
347
347
|
protected AdModuleConfig moduleConfig => Config.ad;
|
|
348
|
+
public Dictionary<string, object> userData => context?.userData;
|
|
348
349
|
|
|
349
350
|
// APIs
|
|
350
351
|
internal protected abstract AdLogic interstitial { get; }
|
package/Runtime/AmaGDK.cs
CHANGED
|
@@ -27,7 +27,7 @@ namespace Amanotes.Core
|
|
|
27
27
|
{
|
|
28
28
|
public partial class AmaGDK : MonoBehaviour
|
|
29
29
|
{
|
|
30
|
-
public const string VERSION = "0.2.
|
|
30
|
+
public const string VERSION = "0.2.80-f1";
|
|
31
31
|
|
|
32
32
|
internal static Status _status = Status.None;
|
|
33
33
|
private static ConfigAsset _config = null;
|
package/Runtime/Core/GDKDebug.cs
CHANGED
|
@@ -12,10 +12,10 @@ namespace Amanotes.Core
|
|
|
12
12
|
Verbose
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
internal struct NoStackTrace : IDisposable
|
|
15
|
+
internal readonly struct NoStackTrace : IDisposable
|
|
16
16
|
{
|
|
17
|
-
internal LogType logType;
|
|
18
|
-
internal StackTraceLogType stackTraceType;
|
|
17
|
+
internal readonly LogType logType;
|
|
18
|
+
internal readonly StackTraceLogType stackTraceType;
|
|
19
19
|
|
|
20
20
|
internal NoStackTrace(LogType logType)
|
|
21
21
|
{
|
|
@@ -34,19 +34,32 @@ namespace Amanotes.Core
|
|
|
34
34
|
public static NoStackTrace Log => new NoStackTrace(LogType.Log);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
internal readonly struct NoStackTraceNull: IDisposable
|
|
38
|
+
{
|
|
39
|
+
public void Dispose()
|
|
40
|
+
{
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
public class GDKDebug
|
|
38
46
|
{
|
|
47
|
+
internal static readonly IDisposable NoStackTraceNull = new NoStackTraceNull();
|
|
48
|
+
|
|
39
49
|
public static Action<string> logNonfatalErrorHook = null;
|
|
40
50
|
private static readonly HashSet<string> nonFatalDict = new HashSet<string>();
|
|
41
|
-
|
|
51
|
+
private static readonly HashSet<string> logWarningDict = new HashSet<string>();
|
|
42
52
|
|
|
43
53
|
public static void LogWarningOnce(string message, string key = null)
|
|
44
54
|
{
|
|
45
55
|
if (AmaGDK.logLevel < LogLevel.Warning) return;
|
|
46
56
|
if (string.IsNullOrEmpty(key)) key = message;
|
|
47
|
-
|
|
57
|
+
lock (logWarningDict)
|
|
58
|
+
{
|
|
59
|
+
if (!logWarningDict.Add(key)) return;
|
|
60
|
+
}
|
|
48
61
|
|
|
49
|
-
using (NoStackTrace.Warning)
|
|
62
|
+
using (GDKUtils.isOnMainThread ? NoStackTrace.Warning: NoStackTraceNull)
|
|
50
63
|
{
|
|
51
64
|
Debug.LogWarning($"AmaGDK {message}");
|
|
52
65
|
}
|
|
@@ -54,39 +67,40 @@ namespace Amanotes.Core
|
|
|
54
67
|
public static void LogWarning(string message)
|
|
55
68
|
{
|
|
56
69
|
if (AmaGDK.logLevel < LogLevel.Warning) return;
|
|
57
|
-
using (NoStackTrace.Warning)
|
|
70
|
+
using (GDKUtils.isOnMainThread ? NoStackTrace.Warning: NoStackTraceNull)
|
|
58
71
|
{
|
|
59
|
-
Debug.LogWarning($"AmaGDK {message}");
|
|
72
|
+
Debug.LogWarning($"AmaGDK {message}");
|
|
60
73
|
}
|
|
61
74
|
}
|
|
62
75
|
public static void LogError(string message)
|
|
63
76
|
{
|
|
64
77
|
if (AmaGDK.logLevel < LogLevel.Error) return;
|
|
65
|
-
using (NoStackTrace.Error)
|
|
78
|
+
using (GDKUtils.isOnMainThread ? NoStackTrace.Error: NoStackTraceNull)
|
|
66
79
|
{
|
|
67
|
-
Debug.LogError($"AmaGDK {message}");
|
|
80
|
+
Debug.LogError($"AmaGDK {message}");
|
|
68
81
|
}
|
|
69
82
|
|
|
70
83
|
if (logNonfatalErrorHook == null) return;
|
|
71
84
|
|
|
72
85
|
if (GDKUtils.isOnMainThread) // Most of the time
|
|
73
86
|
{
|
|
74
|
-
|
|
75
|
-
logNonfatalErrorHook(message);
|
|
87
|
+
LogNonFatalOnMainThread(message);
|
|
76
88
|
return;
|
|
77
89
|
}
|
|
78
90
|
|
|
79
|
-
GDKUtils.DoOnMainThread(() =>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
91
|
+
GDKUtils.DoOnMainThread(() => { LogNonFatalOnMainThread(message); });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private static void LogNonFatalOnMainThread(string message)
|
|
95
|
+
{
|
|
96
|
+
if (!nonFatalDict.Add(message)) return;
|
|
97
|
+
logNonfatalErrorHook(message);
|
|
84
98
|
}
|
|
85
99
|
|
|
86
100
|
public static void Log(string message)
|
|
87
101
|
{
|
|
88
102
|
if (AmaGDK.logLevel < LogLevel.Verbose) return;
|
|
89
|
-
using (NoStackTrace.Log)
|
|
103
|
+
using (GDKUtils.isOnMainThread ? NoStackTrace.Log: NoStackTraceNull)
|
|
90
104
|
{
|
|
91
105
|
Debug.Log($"AmaGDK {message}");
|
|
92
106
|
}
|
|
@@ -94,7 +108,7 @@ namespace Amanotes.Core
|
|
|
94
108
|
|
|
95
109
|
public static void ForceLog(string message)
|
|
96
110
|
{
|
|
97
|
-
using (NoStackTrace.Log)
|
|
111
|
+
using (GDKUtils.isOnMainThread ? NoStackTrace.Log: NoStackTraceNull)
|
|
98
112
|
{
|
|
99
113
|
Debug.Log($"AmaGDK {message}");
|
|
100
114
|
}
|
package/package.json
CHANGED
|
Binary file
|