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 CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.56 - 2024-04-03]
4
+ - Release AmaGDK v0.2.56
5
+
3
6
  ## [0.2.55 - 2024-03-28]
4
7
  - Send af_inters_displayed & af_rewarded_displayed to AppsFlyer
5
8
  - Use Sqlite for analytics
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/Runtime/AmaGDK.cs CHANGED
@@ -17,7 +17,7 @@ namespace Amanotes.Core
17
17
  {
18
18
  public partial class AmaGDK : MonoBehaviour
19
19
  {
20
- public const string VERSION = "0.2.55";
20
+ public const string VERSION = "0.2.56";
21
21
 
22
22
  internal static AmaGDK _instance;
23
23
  internal static Status _status = Status.None;
@@ -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
+
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 9d36fe04b538e4580902f417f4cf88c6
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.55",
3
+ "version": "0.2.56",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2019.4",