com.amanotes.gdk 0.2.30 → 0.2.31-2
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 -1
- package/Extra/AmaGDKInstaller.unitypackage +0 -0
- package/Extra/AmaGDKProject.unitypackage +0 -0
- package/Packages/AmaGDKConfig.unitypackage +0 -0
- package/Packages/AmaGDKExample.unitypackage +0 -0
- package/Packages/AmaGDKTest.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter_v6.5.4.unitypackage +0 -0
- package/Packages/FirebaseAnalyticsAdapter_v9.1.0.unitypackage +0 -0
- package/Packages/FirebaseRemoteConfigAdapter_v9.1.0.unitypackage +0 -0
- package/Packages/IronsourceAdapter_v7.2.6.unitypackage +0 -0
- package/Packages/RevenueCatAdapter_v6.0.0.unitypackage +0 -0
- package/Runtime/AmaGDK.Ads.cs +7 -7
- package/Runtime/AmaGDK.Utils.cs +13 -6
- package/Runtime/AmaGDK.cs +1 -1
- package/package.json +1 -1
- package/Packages/IronSourceAdapter_v7.2.6.unitypackage +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.2.
|
|
3
|
+
## [0.2.31-2 - 2024-08-21]
|
|
4
|
+
- [Fix] Exception while loading / parsing LoadJsonFromFile
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/Runtime/AmaGDK.Ads.cs
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|
package/Runtime/AmaGDK.Utils.cs
CHANGED
|
@@ -253,14 +253,21 @@ namespace Amanotes.Core.Internal
|
|
|
253
253
|
{
|
|
254
254
|
public static T LoadJsonFromFile<T>(this T instance) where T : IJsonFile, new()
|
|
255
255
|
{
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
var result = new T();
|
|
259
|
-
instance = result;
|
|
260
|
-
}
|
|
256
|
+
instance ??= new T();
|
|
257
|
+
|
|
261
258
|
string fileName = instance.GetType().Name;
|
|
262
259
|
string json = GDKFileUtils.Load(fileName);
|
|
263
|
-
|
|
260
|
+
if (!string.IsNullOrEmpty(json))
|
|
261
|
+
{
|
|
262
|
+
try
|
|
263
|
+
{
|
|
264
|
+
JsonUtility.FromJsonOverwrite(json, instance);
|
|
265
|
+
} catch (Exception e)
|
|
266
|
+
{
|
|
267
|
+
LogWarning("LoadJsonFromFile error: " + fileName + "\n" + e);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
264
271
|
return instance;
|
|
265
272
|
}
|
|
266
273
|
|
package/Runtime/AmaGDK.cs
CHANGED
package/package.json
CHANGED
|
Binary file
|