com.amanotes.gdk 0.1.5 → 0.1.8
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 +5 -0
- package/Packages/AmaGDKConfig.unitypackage +0 -0
- package/Packages/FirebaseAnalyticsAdapter_v9.1.0.unitypackage +0 -0
- package/Runtime/AmaGDK.Adapters.cs +1 -1
- package/Runtime/AmaGDK.Analytics.cs +8 -4
- package/Runtime/AmaGDK.Internal.cs +2 -2
- package/Runtime/AmaGDK.cs +14 -2
- package/package.json +1 -1
- package/Packages/AppsflyerAdapter_v6.5.4.unitypackage +0 -0
- package/Packages/AppsflyerAdapter_v6.5.4.unitypackage.meta +0 -7
package/CHANGELOG.md
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -20,7 +20,7 @@ namespace Amanotes.Core.Internal
|
|
|
20
20
|
protected static T _instance;
|
|
21
21
|
protected static Status _status = Status.None;
|
|
22
22
|
public bool IsReady => _status == Status.Ready;
|
|
23
|
-
public string Id => typeof(T).
|
|
23
|
+
public string Id => typeof(T).Name.Replace("Adapter", string.Empty);
|
|
24
24
|
|
|
25
25
|
public void Init()
|
|
26
26
|
{
|
|
@@ -170,6 +170,7 @@ namespace Amanotes.Core
|
|
|
170
170
|
internal static void ProcessEventQueue()
|
|
171
171
|
{
|
|
172
172
|
if (eventQueue.Count <= 0) return;
|
|
173
|
+
bool showAnalyticsLog = Config.common.showAnalyticsLog;
|
|
173
174
|
|
|
174
175
|
while (eventQueue.Count > 0)
|
|
175
176
|
{
|
|
@@ -188,12 +189,14 @@ namespace Amanotes.Core
|
|
|
188
189
|
eventData.AddParam("accumulated_count", counter);
|
|
189
190
|
}
|
|
190
191
|
|
|
191
|
-
Log($"Send {eventData.eventName}, count {counter}");
|
|
192
192
|
foreach (var m in listAdapters)
|
|
193
193
|
{
|
|
194
|
-
|
|
194
|
+
var id = ((IAdapter)m).Id;
|
|
195
|
+
if (eventData.ignoreAnalyticIds.Contains(id))
|
|
195
196
|
continue;
|
|
197
|
+
|
|
196
198
|
m.LogEvent(eventData);
|
|
199
|
+
if (showAnalyticsLog) Debug.Log($"[{id}] Sent event <{eventData.eventName}> ({counter})");
|
|
197
200
|
}
|
|
198
201
|
}
|
|
199
202
|
|
|
@@ -465,8 +468,9 @@ namespace Amanotes.Core.Internal
|
|
|
465
468
|
{
|
|
466
469
|
partial class SDKConfig
|
|
467
470
|
{
|
|
468
|
-
public bool
|
|
469
|
-
public bool
|
|
471
|
+
public bool showAnalyticsLog = true;
|
|
472
|
+
public bool normalizeEventName = true;
|
|
473
|
+
public bool checkMigrationIntegrity = true;
|
|
470
474
|
}
|
|
471
475
|
|
|
472
476
|
public interface IAnalyticAdapter
|
|
@@ -38,7 +38,7 @@ namespace Amanotes.Core.Internal
|
|
|
38
38
|
public static readonly string[] AMAGDK_ADAPTERS = new string[]
|
|
39
39
|
{
|
|
40
40
|
"FirebaseAnalyticsAdapter_v9.1.0",
|
|
41
|
-
"AppsflyerAdapter_v6.5.4",
|
|
41
|
+
//"AppsflyerAdapter_v6.5.4",
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -65,7 +65,7 @@ namespace Amanotes.Core.Internal
|
|
|
65
65
|
}
|
|
66
66
|
public static void Log(string message)
|
|
67
67
|
{
|
|
68
|
-
Debug.Log("[AmaGDK] " + message);
|
|
68
|
+
if (AmaGDK.Config.common.verboseLog) Debug.Log("[AmaGDK] " + message);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
package/Runtime/AmaGDK.cs
CHANGED
|
@@ -12,7 +12,7 @@ namespace Amanotes.Core
|
|
|
12
12
|
{
|
|
13
13
|
public partial class AmaGDK : MonoBehaviour
|
|
14
14
|
{
|
|
15
|
-
public const string VERSION = "0.1.
|
|
15
|
+
public const string VERSION = "0.1.8";
|
|
16
16
|
|
|
17
17
|
internal static AmaGDK _instance;
|
|
18
18
|
private static ConfigAsset _config = null;
|
|
@@ -102,7 +102,7 @@ namespace Amanotes.Core
|
|
|
102
102
|
_status = Status.Ready;
|
|
103
103
|
_onReadyCallback?.Invoke();
|
|
104
104
|
_onReadyCallback = null;
|
|
105
|
-
Log(READY);
|
|
105
|
+
Debug.Log($"[AmaGDK] {READY}");
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
private void Update()
|
|
@@ -156,4 +156,16 @@ namespace Amanotes.Core
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
}
|
|
159
|
+
|
|
160
|
+
public partial class AmaGDK
|
|
161
|
+
{
|
|
162
|
+
public static class AdapterID
|
|
163
|
+
{
|
|
164
|
+
public const string FIREBASE_ANALYTICS = "FirebaseAnalytics";
|
|
165
|
+
public const string FIREBASE_REMOTE_CONFIG = "FirebaseRemoteConfig";
|
|
166
|
+
public const string APPSFLYER = "Appsflyer";
|
|
167
|
+
public const string IRONSOURCE = "ironSource";
|
|
168
|
+
public const string REVENUECAT = "RevenueCat";
|
|
169
|
+
}
|
|
170
|
+
}
|
|
159
171
|
}
|
package/package.json
CHANGED
|
Binary file
|