com.amanotes.gdk 0.2.66-3 → 0.2.66-4

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,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.66-4 - 2024-12-03]
4
+ - [Dev] Handle exception of FetchConfig
5
+ - [Dev] Handle format exception in RemoteConfig
6
+
3
7
  ## [0.2.66-2 - 2024-10-25]
4
8
  - [Fix] Disable GDKAudio module
5
9
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,6 @@
1
1
  using System;
2
2
  using System.Collections.Generic;
3
+ using System.Globalization;
3
4
  using System.IO;
4
5
  using System.Text;
5
6
  using UnityEngine;
@@ -80,7 +81,16 @@ namespace Amanotes.Core
80
81
  }
81
82
  #endif
82
83
  if (DictConfig.ContainsKey(key))
83
- return (T)Convert.ChangeType(DictConfig[key], typeof(T));
84
+ {
85
+ try
86
+ {
87
+ return (T)Convert.ChangeType(DictConfig[key], typeof(T), CultureInfo.InvariantCulture);
88
+ }
89
+ catch (Exception e)
90
+ {
91
+ LogError($"[RemoteConfig] Convert failed with key: '{key}', value: '{DictConfig[key]}'.\nError: {e}");
92
+ }
93
+ }
84
94
  return defaultValue;
85
95
  }
86
96
 
package/Runtime/AmaGDK.cs CHANGED
@@ -17,7 +17,7 @@ namespace Amanotes.Core
17
17
  {
18
18
  public partial class AmaGDK : MonoBehaviour
19
19
  {
20
- public const string VERSION = "0.2.66-3";
20
+ public const string VERSION = "0.2.66-4";
21
21
 
22
22
  internal static Status _status = Status.None;
23
23
  private static ConfigAsset _config = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.66-3",
3
+ "version": "0.2.66-4",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2019.4",