com.amanotes.gdk 0.2.53 → 0.2.54

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.54 - 2024-03-20]
4
+ - Update temp total count after accumulated count change
5
+ - Update FirebaseHook
6
+
3
7
  ## [0.2.53 - 2024-03-14]
4
8
  - Add FirebaseCrashlyticsHook
5
9
  - Fix Change to dev mode
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -399,7 +399,7 @@ namespace Amanotes.Core
399
399
  var (countInSession, totalCount) = localData.IncreaseCounter(eventParams);
400
400
  if (eventParams.accumulated || eventParams.parameters.ContainsKey("accumulated_count"))
401
401
  {
402
- UpdateAccumulatedCount(eventParams, countInSession, totalCount);
402
+ UpdateAccumulatedCount(eventParams, countInSession, ref totalCount);
403
403
  }
404
404
 
405
405
  string eventNameToSend = GetEventNameToSend(eventParams.eventName, countInSession, totalCount);
@@ -444,7 +444,7 @@ namespace Amanotes.Core
444
444
  localData.SaveIfDirty();
445
445
  }
446
446
 
447
- internal static void UpdateAccumulatedCount(EventParams eventData, int countInSession, int totalCount)
447
+ internal static void UpdateAccumulatedCount(EventParams eventData, int countInSession, ref int totalCount)
448
448
  {
449
449
  var ACCUMULATED_COUNT = "accumulated_count";
450
450
  var countByGDK = eventData.withinSession ? countInSession : totalCount;
@@ -463,6 +463,7 @@ namespace Amanotes.Core
463
463
  {
464
464
  Log($"[Analytics] Update event count of event <{eventData.eventName}> from {countByGDK} to {oriAccCount}");
465
465
  eventData.EventDetail.totalCount = oriAccCount;
466
+ totalCount = oriAccCount;
466
467
  localData._dirty = true;
467
468
  }
468
469
  }
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.53";
20
+ public const string VERSION = "0.2.54";
21
21
 
22
22
  internal static AmaGDK _instance;
23
23
  internal static Status _status = Status.None;
@@ -187,7 +187,7 @@ namespace Amanotes.Core
187
187
  var sb = new StringBuilder();
188
188
  InitModules();
189
189
 
190
- yield return InitHook();
190
+ yield return InitHook(); //Google CMP takes long at first time (~ 1.7s)
191
191
  yield return WaitForManualInit();
192
192
  yield return InitAdapters(sb);
193
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.53",
3
+ "version": "0.2.54",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2019.4",