com.amanotes.gdk 0.2.81 → 0.2.84

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,3 +1,18 @@
1
+ ## [0.2.84] - 2025-03-17
2
+ - [Fix] Attach JNI thread
3
+
4
+ ## [0.2.83] - 2025-03-12
5
+
6
+
7
+ ## [0.2.82] - 2025-03-12
8
+ - [Fix] Missing DoOnMainThread for ConsentInformation update
9
+ - [Fix] Send GDKVersionTracking only for Android/iOS
10
+ - [Dev] Rename Remote Config Data Source
11
+ - [Fix] Improve disk space checking with thead pool
12
+ - [Dev] Refactor DiskSpacePopup
13
+ - [Fix] Add missing scope registry for integration test
14
+ - [Dev] Add UniTask Dependency
15
+
1
16
  ## [0.2.81] - 2025-01-16
2
17
  - [Fix] GDK Version
3
18
  - [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
- Debug.LogError($"AmaGDK | [SDKVersionTracking] Status code {response.StatusCode} Error Response: {errorData}");
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
@@ -20,8 +20,8 @@ namespace Amanotes.Core
20
20
  public enum RemoteConfigSource
21
21
  {
22
22
  None,
23
- Cache,
24
- Local,
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.Local;
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.Cache;
335
+ Source = RemoteConfigSource.Embed;
336
336
  Log("[RemoteConfig] Load from embed asset");
337
337
  NextState(true);
338
338
  }
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "AmaGDK",
3
3
  "rootNamespace": "",
4
- "references": [],
4
+ "references": [
5
+ "UniTask"
6
+ ],
5
7
  "includePlatforms": [],
6
8
  "excludePlatforms": [],
7
9
  "allowUnsafeCode": true,
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.81";
30
+ public const string VERSION = "0.2.84";
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
- "name": "com.amanotes.gdk",
3
- "version": "0.2.81",
4
- "displayName": "AmaGDK",
5
- "description": "Amanotes Game Development Kit",
6
- "unity": "2019.4",
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"
2
+ "name": "com.amanotes.gdk",
3
+ "version": "0.2.84",
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
  }