com.amanotes.gdk 0.2.59 → 0.2.60

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.60 - 2024-04-23]
4
+ - [Feature] Ensured container's context values remain unchanged
5
+ - [Feature] Check sent funnel event
6
+ - [Feature] IRS test suite option
7
+ - [Dev] Format Notion ChangeLog
8
+ - [Dev] Remove too short method AppendExtraSDKVersion
9
+ - [Dev] Auto get tag and push change log to Notion
10
+ - [Dev] Warning missing adapter when using .OnlyTo()
11
+
3
12
  ## [0.2.59 - 2024-04-12]
4
13
  - [Dev] Improve code coverage
5
14
 
@@ -12,7 +21,6 @@
12
21
  - [Fix] Various warnings fixes due to invalid examples
13
22
  - [Fix] Warning on AdContext destroyed caused by invalid editor ad callback
14
23
 
15
-
16
24
  ## [0.2.57 - 2024-04-08]
17
25
  - [Dev] Fix bug in value conversion within KlavarEvent
18
26
  - [Dev] Auto get change log
@@ -22,7 +30,6 @@
22
30
  - [Dev] Clean up and add tooltip for options
23
31
  - [Fix] Null exception in LocalBuild Version
24
32
 
25
-
26
33
  ## [0.2.56 - 2024-04-03]
27
34
  - Release AmaGDK v0.2.56
28
35
 
@@ -1,4 +1,5 @@
1
1
  using System.Collections.Generic;
2
+ using Amanotes.Core;
2
3
 
3
4
  namespace Amanotes.Editor
4
5
  {
@@ -13,12 +14,9 @@ namespace Amanotes.Editor
13
14
  VersionHelper.UpdateListVersions(module);
14
15
  dicThirdParty.Add(module.id, ExtractVersion.ThirdParty(module.id));
15
16
  }
16
-
17
- foreach (IronSourceSDKAdapter adapter in ExtractVersion.IronSourceAdapter())
18
- {
19
- dicThirdParty.Add(adapter.name, adapter.version);
20
- }
21
17
 
18
+ dicThirdParty["Firebase"] = AmaGDKExtra.FirebaseVersion();
19
+ dicThirdParty["AmaGDK"] = AmaGDK.VERSION;
22
20
  dicThirdParty["AdQuality"] = ExtractVersion.IronSourceAdQuality();
23
21
  dicThirdParty["AdRevenue"] = ExtractVersion.AppsFlyerAdRevenue();
24
22
  dicThirdParty["ACM"] = ExtractVersion.Acm();
@@ -27,6 +25,16 @@ namespace Amanotes.Editor
27
25
  return dicThirdParty;
28
26
  }
29
27
 
28
+ public static Dictionary<string, object> GetIronSourceAdapterVersions()
29
+ {
30
+ Dictionary<string, object> dicAdapters = new Dictionary<string, object>();
31
+ foreach (IronSourceSDKAdapter adapter in ExtractVersion.IronSourceAdapter())
32
+ {
33
+ dicAdapters.Add(adapter.name, adapter.version);
34
+ }
35
+ return dicAdapters;
36
+ }
37
+
30
38
  public static string FirebaseVersion()
31
39
  {
32
40
  string version = ExtractVersion.FirebaseAnalytics();
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -261,6 +261,17 @@ namespace Amanotes.Core
261
261
  adapter.NeverSend = eventNames;
262
262
  }
263
263
  }
264
+
265
+ public static bool HasSent(string eventName)
266
+ {
267
+ if (string.IsNullOrWhiteSpace(eventName)) return false;
268
+ return localData.eventDetails.Exists(e => e.eventName == eventName);
269
+ }
270
+
271
+ public static bool HasSentSignature(string signature)
272
+ {
273
+ return localData.funnelSignatures.Contains(signature);
274
+ }
264
275
  }
265
276
 
266
277
  //INTERNAL
@@ -618,6 +629,13 @@ namespace Amanotes.Core
618
629
  {
619
630
  return localData.AddFunnelSignature(eventData.funnelSignature);
620
631
  }
632
+
633
+ //No valid adapter
634
+ if (eventData.overrideConfig && eventData.allowAdapterIds?.Count == 0)
635
+ {
636
+ LogWarning($"Event <{eventData.eventName}> is skipped because no adapter is valid.");
637
+ return false;
638
+ }
621
639
 
622
640
  //Check predefined event count config
623
641
  if (eventData.IsSkippedBySendAtCountConfig())
@@ -936,8 +954,14 @@ namespace Amanotes.Core
936
954
 
937
955
  foreach (string mId in analyticIds)
938
956
  {
957
+ if (!listAdapters.Exists(a => a.adapterId == mId))
958
+ {
959
+ LogError($"Cannot send event <{eventData.eventName}> to <{mId}>. Analytics adapter for <{mId}> is not available.");
960
+ continue;
961
+ }
939
962
  eventData.allowAdapterIds.Add(mId);
940
963
  }
964
+
941
965
  return ap;
942
966
  }
943
967
 
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.59";
20
+ public const string VERSION = "0.2.60";
21
21
 
22
22
  internal static AmaGDK _instance;
23
23
  internal static Status _status = Status.None;
@@ -8,6 +8,7 @@ namespace Amanotes.Core
8
8
  public class KlavarContainer
9
9
  {
10
10
  public readonly string ctnUUID = GUID.NewGuid().ToString();
11
+ public readonly DateTime createTime = new DateTime();
11
12
  public string lastEventName;
12
13
 
13
14
  public static void LogEventError(string message)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.59",
3
+ "version": "0.2.60",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2019.4",
@@ -14,6 +14,7 @@
14
14
  "email": "tech.support@amanotes.com",
15
15
  "url": "https://amanotes.com"
16
16
  },
17
+ "changelogUrl": "https://amagdk.notion.site/Change-Log-6dfd4b67d64f496bbd9eb04ccb4ef95a",
17
18
  "documentationUrl": "https://amagdk.notion.site/amagdk/Ama-GDK-a73596617ab247b6a43c8f12a1581415",
18
19
  "license": "MIT"
19
20
  }