com.amanotes.gdk 0.2.55 → 0.2.56
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 +3 -0
- package/Extra/AmaGDKInstaller.unitypackage +0 -0
- package/Extra/CheckDiskSpace.unitypackage +0 -0
- package/Extra/ForceUpdate.unitypackage +0 -0
- package/Extra/PostProcessor.unitypackage +0 -0
- package/Extra/SDKVersionTracking.unitypackage +0 -0
- package/Packages/AmaGDKConfig.unitypackage +0 -0
- package/Packages/AmaGDKExample.unitypackage +0 -0
- package/Packages/AmaGDKTest.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter.unitypackage +0 -0
- package/Packages/FirebaseAnalyticsAdapter.unitypackage +0 -0
- package/Packages/FirebaseRemoteConfigAdapter.unitypackage +0 -0
- package/Packages/IronSourceAdapter.unitypackage +0 -0
- package/Packages/RevenueCatAdapter.unitypackage +0 -0
- package/Packages/SqliteAnalyticsAdapter.unitypackage +0 -0
- package/Runtime/AmaGDK.cs +1 -1
- package/Runtime/Klavar/KlavarContainer.cs +27 -0
- package/Runtime/Klavar/KlavarContainer.cs.meta +11 -0
- package/Runtime/Klavar/KlavarEvent.cs +20 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
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/AmaGDK.cs
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
using Amanotes.Core.Internal;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
using GUID = System.Guid;
|
|
5
|
+
|
|
6
|
+
namespace Amanotes.Core
|
|
7
|
+
{
|
|
8
|
+
public class KlavarContainer
|
|
9
|
+
{
|
|
10
|
+
public readonly string ctnUUID = GUID.NewGuid().ToString();
|
|
11
|
+
public string lastEventName;
|
|
12
|
+
|
|
13
|
+
public static void LogEventError(string message)
|
|
14
|
+
{
|
|
15
|
+
if (!Application.isBatchMode)
|
|
16
|
+
Logging.LogError(message);
|
|
17
|
+
throw new KlavarException(message);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public class KlavarException : Exception
|
|
22
|
+
{
|
|
23
|
+
public KlavarException() { }
|
|
24
|
+
public KlavarException(string message) : base(message) { }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
@@ -11,6 +11,8 @@ namespace Amanotes.Core
|
|
|
11
11
|
/// </summary>
|
|
12
12
|
public abstract class KlavarEvent
|
|
13
13
|
{
|
|
14
|
+
private Dictionary<string, object> additionalParameters = new Dictionary<string, object>();
|
|
15
|
+
|
|
14
16
|
/// <summary>
|
|
15
17
|
/// LogEvent
|
|
16
18
|
/// </summary>
|
|
@@ -25,6 +27,12 @@ namespace Amanotes.Core
|
|
|
25
27
|
|
|
26
28
|
var @params = this.ToDict();
|
|
27
29
|
var eventName = eventNameAttr.name;
|
|
30
|
+
|
|
31
|
+
foreach (var kvp in additionalParameters)
|
|
32
|
+
{
|
|
33
|
+
@params[kvp.Key] = kvp.Value;
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
AmaGDK.Analytics.LogEvent(eventName, @params);
|
|
29
37
|
}
|
|
30
38
|
|
|
@@ -87,5 +95,17 @@ namespace Amanotes.Core
|
|
|
87
95
|
field => Convert(field)
|
|
88
96
|
);
|
|
89
97
|
}
|
|
98
|
+
|
|
99
|
+
/// <summary>
|
|
100
|
+
/// AttachContainerParameters method attaches container parameters to the event.
|
|
101
|
+
/// </summary>
|
|
102
|
+
/// <param name="parameters">The container parameters to attach.</param>
|
|
103
|
+
public void AttachContainerParameters(Dictionary<string, object> parameters)
|
|
104
|
+
{
|
|
105
|
+
foreach (var kvp in parameters)
|
|
106
|
+
{
|
|
107
|
+
additionalParameters[kvp.Key] = kvp.Value;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
90
110
|
}
|
|
91
111
|
}
|