com.amanotes.gdk 0.2.84 → 0.2.85
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 +3 -0
- package/Extra/AmaGDKInstaller.unitypackage +0 -0
- package/Extra/AutoEventQC.unitypackage +0 -0
- package/Extra/CheckDiskSpace.unitypackage +0 -0
- package/Extra/Consent.unitypackage +0 -0
- package/Extra/CrashlyticHook.unitypackage +0 -0
- package/Extra/ForceUpdate.unitypackage +0 -0
- package/Extra/LegacyGDKUpdateHelper.unitypackage +0 -0
- package/Extra/PostProcessor.unitypackage +0 -0
- package/Packages/AmaGDKConfig.unitypackage +0 -0
- package/Packages/AmaGDKExample.unitypackage +0 -0
- package/Packages/AmaGDKTest.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter.PurchaseConnector.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter.unitypackage +0 -0
- package/Packages/FirebaseAnalyticsAdapter.unitypackage +0 -0
- package/Packages/FirebaseRemoteConfigAdapter.unitypackage +0 -0
- package/Packages/IronSourceAdapter.AdQuality.unitypackage +0 -0
- package/Packages/IronSourceAdapter.unitypackage +0 -0
- package/Packages/MaxAdNetworkAdapter.unitypackage +0 -0
- package/Packages/RevenueCatAdapter.unitypackage +0 -0
- package/Packages/SqliteAnalyticsAdapter.unitypackage +0 -0
- package/Runtime/Ad/AdLogic.cs +12 -1
- package/Runtime/AmaGDK.cs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/Runtime/Ad/AdLogic.cs
CHANGED
|
@@ -28,6 +28,7 @@ namespace Amanotes.Core.Internal
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
internal GDKRoutine _loadRoutine;
|
|
31
|
+
private GDKRoutine _handleAdActivityKilledRoutine;
|
|
31
32
|
|
|
32
33
|
public void StartLoadAd()
|
|
33
34
|
{
|
|
@@ -180,6 +181,7 @@ namespace Amanotes.Core.Internal
|
|
|
180
181
|
|
|
181
182
|
IEnumerator ShowAdRoutine()
|
|
182
183
|
{
|
|
184
|
+
StopHandleAdActivityKilledRoutine();
|
|
183
185
|
// Wait to end frame so that all AdCallbacks finish registering
|
|
184
186
|
yield return new WaitForEndOfFrame();
|
|
185
187
|
|
|
@@ -222,7 +224,7 @@ namespace Amanotes.Core.Internal
|
|
|
222
224
|
OnAdShowReadyStatus(true, AdShowReadyStatus.Ready);
|
|
223
225
|
TriggerBeforeAdShow();
|
|
224
226
|
#if !UNITY_EDITOR && UNITY_ANDROID
|
|
225
|
-
GDKUtils.StartCoroutine(HandleAdActivityKilledSilently());
|
|
227
|
+
_handleAdActivityKilledRoutine = GDKUtils.StartCoroutine(HandleAdActivityKilledSilently());
|
|
226
228
|
#endif
|
|
227
229
|
ShowAd();
|
|
228
230
|
yield return WaitForMediationCallback();
|
|
@@ -272,6 +274,14 @@ namespace Amanotes.Core.Internal
|
|
|
272
274
|
}
|
|
273
275
|
unityCallbacks.OnApplicationFocus -= onApplicationFocusCallback;
|
|
274
276
|
}
|
|
277
|
+
|
|
278
|
+
private void StopHandleAdActivityKilledRoutine()
|
|
279
|
+
{
|
|
280
|
+
if (_handleAdActivityKilledRoutine == null) return;
|
|
281
|
+
_handleAdActivityKilledRoutine.StopRoutine();
|
|
282
|
+
_handleAdActivityKilledRoutine = null;
|
|
283
|
+
Log("[Ad] HandleAdActivityKilledSilently routine canceled.");
|
|
284
|
+
}
|
|
275
285
|
|
|
276
286
|
private void EndShowAdRoutineWithFailure(AdShowReadyStatus status)
|
|
277
287
|
{
|
|
@@ -310,6 +320,7 @@ namespace Amanotes.Core.Internal
|
|
|
310
320
|
|
|
311
321
|
private void ShowAdRoutineCompleted(bool isSuccess)
|
|
312
322
|
{
|
|
323
|
+
StopHandleAdActivityKilledRoutine();
|
|
313
324
|
if (_loadState == LoadAdsState.Ready)
|
|
314
325
|
{
|
|
315
326
|
_loadState = isAdReady ? LoadAdsState.Ready : LoadAdsState.None;
|
package/Runtime/AmaGDK.cs
CHANGED
|
@@ -27,7 +27,7 @@ namespace Amanotes.Core
|
|
|
27
27
|
{
|
|
28
28
|
public partial class AmaGDK : MonoBehaviour
|
|
29
29
|
{
|
|
30
|
-
public const string VERSION = "0.2.
|
|
30
|
+
public const string VERSION = "0.2.85";
|
|
31
31
|
|
|
32
32
|
internal static Status _status = Status.None;
|
|
33
33
|
internal static ConfigAsset _config = null;
|