com.amanotes.gdk 0.2.39 → 0.2.40
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 +4 -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/AppsFlyerAdRevenuePlugin.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 +27 -13
- package/Runtime/AmaGDK.cs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.40 - 2023-11-27]
|
|
4
|
+
- Fix ShowAdTimeout = 0 should not wait for Ad
|
|
5
|
+
|
|
3
6
|
## [0.2.39 - 2023-11-27]
|
|
4
7
|
- Fix variable name and variable value of "ChangeDevMode"
|
|
5
|
-
-
|
|
8
|
+
- Load Ad timeout should cancel
|
|
6
9
|
|
|
7
10
|
## [0.2.38 - 2023-11-22]
|
|
8
11
|
- Improve Ads API
|
|
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.Ads.cs
CHANGED
|
@@ -634,31 +634,46 @@ namespace Amanotes.Core.Internal
|
|
|
634
634
|
ShowAdRoutineCompleted(false);
|
|
635
635
|
yield break;
|
|
636
636
|
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
if (!hasInternet)
|
|
637
|
+
|
|
638
|
+
int timeout = Ads._adConfig.adShowTimeoutInSecs;
|
|
639
|
+
if (timeout == 0) // do not wait for Ad
|
|
641
640
|
{
|
|
642
641
|
_showState = ShowAdsState.ShowFail;
|
|
643
|
-
OnAdShowReadyStatus(false, AdShowReadyStatus.
|
|
642
|
+
OnAdShowReadyStatus(false, AdShowReadyStatus.TimeOut);
|
|
644
643
|
ShowAdRoutineCompleted(false);
|
|
645
644
|
yield break;
|
|
646
645
|
}
|
|
647
|
-
|
|
648
|
-
if (_loadState != LoadAdsState.Requesting) StartLoadAd();
|
|
646
|
+
|
|
649
647
|
_showState = ShowAdsState.WaitForAd;
|
|
650
|
-
|
|
648
|
+
if (_loadState != LoadAdsState.Requesting) StartLoadAd();
|
|
649
|
+
|
|
651
650
|
var counter = 0;
|
|
652
|
-
|
|
653
|
-
|
|
651
|
+
bool? hasInternet = null;
|
|
652
|
+
_instance.StartCoroutine(WebUtils.CheckInternet(result => hasInternet = result));
|
|
653
|
+
|
|
654
|
+
while (counter < timeout || timeout == -1)
|
|
654
655
|
{
|
|
655
656
|
yield return wait1Sec;
|
|
656
657
|
counter++;
|
|
657
|
-
if (_loadState == LoadAdsState.Ready) break;
|
|
658
|
-
}
|
|
659
658
|
|
|
659
|
+
// finish checking internet & result is false
|
|
660
|
+
if (hasInternet == false)
|
|
661
|
+
{
|
|
662
|
+
Log("[Ad] Stop WaitForAd : No internet!");
|
|
663
|
+
_showState = ShowAdsState.ShowFail;
|
|
664
|
+
OnAdShowReadyStatus(false, AdShowReadyStatus.NoInternet);
|
|
665
|
+
ShowAdRoutineCompleted(false);
|
|
666
|
+
yield break;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
if (_loadState != LoadAdsState.Ready) continue;
|
|
670
|
+
Log("[Ad] WaitForAd success after " + counter + " | timeout = " + timeout + " secs");
|
|
671
|
+
break;
|
|
672
|
+
}
|
|
673
|
+
|
|
660
674
|
if (!isAdReady)
|
|
661
675
|
{
|
|
676
|
+
Log("[Ad] WaitForAd failed (timeout) " + counter + " | timeout = " + timeout + " secs");
|
|
662
677
|
OnAdShowReadyStatus(false, AdShowReadyStatus.TimeOut);
|
|
663
678
|
ShowAdRoutineCompleted(false);
|
|
664
679
|
yield break;
|
|
@@ -667,7 +682,6 @@ namespace Amanotes.Core.Internal
|
|
|
667
682
|
|
|
668
683
|
_showState = ShowAdsState.Showing;
|
|
669
684
|
OnAdShowReadyStatus(true, AdShowReadyStatus.None);
|
|
670
|
-
|
|
671
685
|
HandleBeforeAdShow();
|
|
672
686
|
ShowAd();
|
|
673
687
|
|
package/Runtime/AmaGDK.cs
CHANGED