com.amanotes.gdk 0.2.81 → 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 +18 -0
- package/Editor/Extra/SDKVersionTracking.cs +20 -1
- 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.RemoteConfig.cs +4 -4
- package/Runtime/AmaGDK.asmdef +3 -1
- package/Runtime/AmaGDK.cs +1 -1
- package/package.json +30 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [0.2.85] - 2025-03-18
|
|
2
|
+
- [Fix] Manage ad activity killed routine
|
|
3
|
+
|
|
4
|
+
## [0.2.84] - 2025-03-17
|
|
5
|
+
- [Fix] Attach JNI thread
|
|
6
|
+
|
|
7
|
+
## [0.2.83] - 2025-03-12
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.2.82] - 2025-03-12
|
|
11
|
+
- [Fix] Missing DoOnMainThread for ConsentInformation update
|
|
12
|
+
- [Fix] Send GDKVersionTracking only for Android/iOS
|
|
13
|
+
- [Dev] Rename Remote Config Data Source
|
|
14
|
+
- [Fix] Improve disk space checking with thead pool
|
|
15
|
+
- [Dev] Refactor DiskSpacePopup
|
|
16
|
+
- [Fix] Add missing scope registry for integration test
|
|
17
|
+
- [Dev] Add UniTask Dependency
|
|
18
|
+
|
|
1
19
|
## [0.2.81] - 2025-01-16
|
|
2
20
|
- [Fix] GDK Version
|
|
3
21
|
- [Dev] Improve Google CMP
|
|
@@ -2,6 +2,7 @@ using System;
|
|
|
2
2
|
using System.Collections.Generic;
|
|
3
3
|
using System.IO;
|
|
4
4
|
using System.Linq;
|
|
5
|
+
using System.Net;
|
|
5
6
|
using System.Net.Http;
|
|
6
7
|
using System.Text;
|
|
7
8
|
using System.Xml;
|
|
@@ -269,6 +270,19 @@ namespace Amanotes.Editor
|
|
|
269
270
|
[PostProcessBuild(999)]
|
|
270
271
|
public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject)
|
|
271
272
|
{
|
|
273
|
+
if (target != BuildTarget.Android && target != BuildTarget.iOS) return;
|
|
274
|
+
|
|
275
|
+
var productName = Application.productName?.Trim().ToLowerInvariant();
|
|
276
|
+
var appId = PlayerSettings.applicationIdentifier?.ToLowerInvariant();
|
|
277
|
+
var bundleVersion = PlayerSettings.bundleVersion?.Trim();
|
|
278
|
+
|
|
279
|
+
if (string.IsNullOrEmpty(productName) || productName == "my project" ||
|
|
280
|
+
string.IsNullOrEmpty(appId) || appId.StartsWith("com.defaultcompany") || appId.StartsWith("com.unity-technologies") ||
|
|
281
|
+
string.IsNullOrEmpty(bundleVersion) || bundleVersion == "0")
|
|
282
|
+
{
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
|
|
272
286
|
var rawData = _dicThirdPartyVersion
|
|
273
287
|
.Concat(_dicExtraVersion)
|
|
274
288
|
.Concat(_dicIronSourceAdapterVersion.ToDictionary(kvp => kvp.Key, kvp => (object)("IS_" + kvp.Value)))
|
|
@@ -318,7 +332,12 @@ namespace Amanotes.Editor
|
|
|
318
332
|
else
|
|
319
333
|
{
|
|
320
334
|
string errorData = await response.Content.ReadAsStringAsync();
|
|
321
|
-
|
|
335
|
+
string errorMessage = $"AmaGDK | [SDKVersionTracking] Status code {response.StatusCode} Error Response: {errorData}";
|
|
336
|
+
if ((int)response.StatusCode == 409)
|
|
337
|
+
{
|
|
338
|
+
throw new Exception(errorMessage);
|
|
339
|
+
}
|
|
340
|
+
Debug.LogError(errorMessage);
|
|
322
341
|
}
|
|
323
342
|
}
|
|
324
343
|
catch (HttpRequestException e)
|
|
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;
|
|
@@ -20,8 +20,8 @@ namespace Amanotes.Core
|
|
|
20
20
|
public enum RemoteConfigSource
|
|
21
21
|
{
|
|
22
22
|
None,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
Embed,
|
|
24
|
+
LocalCache,
|
|
25
25
|
Internet
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -294,7 +294,7 @@ namespace Amanotes.Core
|
|
|
294
294
|
DictConfig.Add(key, Decode(value));
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
Source = RemoteConfigSource.
|
|
297
|
+
Source = RemoteConfigSource.LocalCache;
|
|
298
298
|
Log("[RemoteConfig] Load from cache");
|
|
299
299
|
}
|
|
300
300
|
catch (Exception ex)
|
|
@@ -332,7 +332,7 @@ namespace Amanotes.Core
|
|
|
332
332
|
{
|
|
333
333
|
DictConfig.Add(item.key, item.value);
|
|
334
334
|
}
|
|
335
|
-
Source = RemoteConfigSource.
|
|
335
|
+
Source = RemoteConfigSource.Embed;
|
|
336
336
|
Log("[RemoteConfig] Load from embed asset");
|
|
337
337
|
NextState(true);
|
|
338
338
|
}
|
package/Runtime/AmaGDK.asmdef
CHANGED
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;
|
package/package.json
CHANGED
|
@@ -1,20 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
"name": "com.amanotes.gdk",
|
|
3
|
+
"version": "0.2.85",
|
|
4
|
+
"displayName": "AmaGDK",
|
|
5
|
+
"description": "Amanotes Game Development Kit",
|
|
6
|
+
"unity": "2020.3",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"Amanotes",
|
|
9
|
+
"Amanotes GDK",
|
|
10
|
+
"vh-name:AmaGDK"
|
|
11
|
+
],
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Amanotes",
|
|
14
|
+
"email": "tech.support@amanotes.com",
|
|
15
|
+
"url": "https://amanotes.com"
|
|
16
|
+
},
|
|
17
|
+
"changelogUrl": "https://amagdk.notion.site/Change-Log-6dfd4b67d64f496bbd9eb04ccb4ef95a",
|
|
18
|
+
"documentationUrl": "https://amagdk.notion.site/amagdk/Ama-GDK-a73596617ab247b6a43c8f12a1581415",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"com.cysharp.unitask": "2.5.10"
|
|
22
|
+
},
|
|
23
|
+
"scopedRegistries": [
|
|
24
|
+
{
|
|
25
|
+
"name": "OpenUPM",
|
|
26
|
+
"url": "https://package.openupm.com",
|
|
27
|
+
"scopes": [
|
|
28
|
+
"com.cysharp"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
20
32
|
}
|