com.amanotes.gdk 0.2.30 → 0.2.31-1

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,6 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## [0.2.30 - 2023-11-06]
3
+ ## [0.2.31-1 - 2024-03-06]
4
+ - Add Analytics.enableAnalyticsLog property
5
+
6
+ ## [0.2.31 - 2023-11-06]
7
+ - [Fix] False alarm when video reward ready
8
+ - [Fix] Callbacks should trigger earlier (being delayed like 1s)
9
+
10
+ ## [0.2.3 - 2023-11-06]
4
11
  - [Fix] GDK should base on realtime instead of game time (which may be pause due to timescale)
5
12
 
6
13
  ## [0.2.29 - 2023-11-03]
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -216,7 +216,7 @@ namespace Amanotes.Core
216
216
  return context.adType == AdType.VideoReward;
217
217
  }
218
218
  }
219
-
219
+
220
220
  private static bool _isBannerShowing;
221
221
  public static void ShowBanner(BannerPosition? bannerPosition = null)
222
222
  {
@@ -589,7 +589,7 @@ namespace Amanotes.Core.Internal
589
589
  ShowAdContext context = Ads.context;
590
590
  while (!context.potentiallyCompleted)
591
591
  {
592
- yield return wait1Sec;
592
+ yield return null; // callback as quickly as possible
593
593
  }
594
594
 
595
595
  if (adType == AdType.Interstitial)
@@ -601,7 +601,7 @@ namespace Amanotes.Core.Internal
601
601
  if (context.hasFailedOrCancelled)
602
602
  {
603
603
  Log($"[Ad] {adType} Waiting for [close]");
604
- yield return wait1Sec; // wait for close (1s)
604
+ yield return null;
605
605
  ShowAdRoutineCompleted(false);
606
606
  yield break;
607
607
  }
@@ -611,17 +611,17 @@ namespace Amanotes.Core.Internal
611
611
  while (!context.hasFailedOrCancelled && !context.hasReward)
612
612
  {
613
613
  Log($"[Ad] {adType} Waiting for [cancel] or [reward]");
614
- yield return wait1Sec;
614
+ yield return null;
615
615
  }
616
616
 
617
617
  ShowAdRoutineCompleted(!context.hasFailedOrCancelled);
618
618
  yield break;
619
619
  }
620
-
620
+
621
621
  while (!context.hasClosed)
622
622
  {
623
623
  Log($"[Ad] {adType} Waiting for [close]");
624
- yield return wait1Sec;
624
+ yield return null;
625
625
  }
626
626
 
627
627
  ShowAdRoutineCompleted(true);
@@ -809,7 +809,7 @@ namespace Amanotes.Core.Internal
809
809
  {
810
810
  Log($"[Ad] {adType} OnAdLoadSuccess");
811
811
 
812
- if (!_isRequesting)
812
+ if (!_isRequesting && adType == AdType.Interstitial)
813
813
  {
814
814
  LogWarning("[Ad] Something wrong? OnAdReady called when no ad is loading! AdType=" + adType);
815
815
  }
@@ -30,6 +30,11 @@ namespace Amanotes.Core
30
30
  public static partial class Analytics
31
31
  {
32
32
  public static bool HasMigrated => localData.migrationLog.count > 0;
33
+ public static bool enableAnalyticsLog
34
+ {
35
+ set => Config.common.showAnalyticsLog = value;
36
+ get => Config.common.showAnalyticsLog;
37
+ }
33
38
 
34
39
  public interface IEventParamsBuilder { }
35
40
 
@@ -757,7 +762,7 @@ namespace Amanotes.Core.Internal
757
762
 
758
763
  public partial class SDKConfig
759
764
  {
760
- public bool showAnalyticsLog = true;
765
+ public bool showAnalyticsLog;
761
766
  public bool normalizeEventName = true;
762
767
  public bool checkMigrationIntegrity = true;
763
768
  public bool enableEventStat;
package/Runtime/AmaGDK.cs CHANGED
@@ -14,7 +14,7 @@ namespace Amanotes.Core
14
14
  {
15
15
  public partial class AmaGDK : MonoBehaviour
16
16
  {
17
- public const string VERSION = "0.2.30";
17
+ public const string VERSION = "0.2.31-1";
18
18
 
19
19
  internal static AmaGDK _instance;
20
20
  internal static Status _status = Status.None;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.30",
3
+ "version": "0.2.31-1",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2019.4",