com.amanotes.gdk 0.2.58 → 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,18 @@
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
+
12
+ ## [0.2.59 - 2024-04-12]
13
+ - [Dev] Improve code coverage
14
+
15
+
3
16
  ## [0.2.58 - 2024-04-09]
4
17
  - [DEV] combine code coverage report
5
18
  - [Dev] Improve GDK Utils
@@ -8,7 +21,6 @@
8
21
  - [Fix] Various warnings fixes due to invalid examples
9
22
  - [Fix] Warning on AdContext destroyed caused by invalid editor ad callback
10
23
 
11
-
12
24
  ## [0.2.57 - 2024-04-08]
13
25
  - [Dev] Fix bug in value conversion within KlavarEvent
14
26
  - [Dev] Auto get change log
@@ -18,7 +30,6 @@
18
30
  - [Dev] Clean up and add tooltip for options
19
31
  - [Fix] Null exception in LocalBuild Version
20
32
 
21
-
22
33
  ## [0.2.56 - 2024-04-03]
23
34
  - Release AmaGDK v0.2.56
24
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.58";
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,14 +8,16 @@ 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)
14
15
  {
15
- #if !AMAGDK_DEV
16
+ #if UNITY_EDITOR
17
+ throw new KlavarException(message);
18
+ #else
16
19
  Logging.LogError(message);
17
20
  #endif
18
- throw new KlavarException(message);
19
21
  }
20
22
  }
21
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.58",
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
  }
@@ -1,92 +0,0 @@
1
- //
2
- // #if UNITY_EDITOR
3
- //
4
- // using System.Linq;
5
- // using System.Collections;
6
- // using UnityEditor;
7
- // using UnityEngine;
8
- //
9
- // using System.IO;
10
- // using System.Collections.Generic;
11
- // using System;
12
- //
13
- // namespace Amanotes.Core
14
- // {
15
- // /// <summary>
16
- // /// Prety Log Event Tools
17
- // /// </summary>
18
- // public class KlavarEventTools
19
- // {
20
- // public class KlavarEventLine
21
- // {
22
- // public string No;
23
- // public string EventName;
24
- // public string EventParameterName;
25
- //
26
- // public string ValueType;
27
- //
28
- // public string ParameterValue;
29
- //
30
- // public bool IsInvalid()
31
- // {
32
- // return string.IsNullOrWhiteSpace(No)
33
- // && string.IsNullOrWhiteSpace(EventName)
34
- // && string.IsNullOrWhiteSpace(EventParameterName)
35
- // && string.IsNullOrWhiteSpace(ValueType)
36
- // && string.IsNullOrWhiteSpace(ParameterValue);
37
- // }
38
- // }
39
- //
40
- // static private IEnumerable<T[]> Chunk<T>(IEnumerable<T> colection, Func<T, bool> splitter)
41
- // {
42
- //
43
- // IEnumerator<T> iter = colection.GetEnumerator();
44
- // var running = iter.MoveNext();
45
- //
46
- // IEnumerable<T> OneChunk()
47
- // {
48
- // yield return iter.Current;
49
- // while (running = iter.MoveNext())
50
- // {
51
- // var val = iter.Current;
52
- // if (splitter(val)) break;
53
- // yield return val;
54
- // }
55
- // }
56
- //
57
- // while (running)
58
- // {
59
- // var chunk = OneChunk().ToArray();
60
- // if (chunk.Length > 0) yield return chunk;
61
- // }
62
- // }
63
- //
64
- //
65
- // static void ConvertFromCSV()
66
- // {
67
- //
68
- // // string path = EditorUtility.OpenFilePanel("Overwrite with png", ".", "tsv");
69
- //
70
- // var path = "/Users/nam.dn/Downloads/Test Pretty Event - Ad Mon.tsv";
71
- // if (string.IsNullOrEmpty(path)) return;
72
- //
73
- //
74
- // Debug.Log(path);
75
- // string text = File.ReadAllText(path);
76
- // var lines = Amanotes.Klavar.TSVParser
77
- // .Parse<KlavarEventLine>(text)
78
- // .Where(line => !line.IsInvalid());
79
- //
80
- // var linesEvents = Chunk(lines, line => !string.IsNullOrEmpty(line.No));
81
- // foreach (var linesEvent in linesEvents)
82
- // {
83
- // Debug.Log(linesEvent[0]);
84
- // Debug.Log(linesEvent.Length);
85
- //
86
- // var linesParams = Chunk(lines, line => !string.IsNullOrEmpty(line.EventParameterName));
87
- //
88
- // }
89
- // }
90
- // }
91
- // }
92
- // #endif
@@ -1,11 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: 4dc125edcd6594383a73b65b72442585
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant: