com.amanotes.gdk 0.2.36 → 0.2.37
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 +6 -1
- package/Extra/AmaGDKInstaller.unitypackage +0 -0
- package/Extra/AmaGDKProject.unitypackage +0 -0
- package/Packages/AmaGDKConfig.unitypackage +0 -0
- package/Packages/AmaGDKExample.unitypackage +0 -0
- package/Packages/AmaGDKTest.unitypackage +0 -0
- package/Packages/AppsFlyerAdRevenuePlugin.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter_v6.5.4.unitypackage +0 -0
- package/Packages/FirebaseAnalyticsAdapter_v9.1.0.unitypackage +0 -0
- package/Packages/FirebaseRemoteConfigAdapter_v9.1.0.unitypackage +0 -0
- package/Packages/IronSourceAdapter_v7.2.6.unitypackage +0 -0
- package/Packages/RevenueCatAdapter_v6.0.0.unitypackage +0 -0
- package/Runtime/AmaGDK.Ads.cs +20 -5
- package/Runtime/AmaGDK.Analytics.cs +3 -3
- package/Runtime/AmaGDK.UserProfile.cs +13 -1
- package/Runtime/AmaGDK.cs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.37 - 2023-11-21]
|
|
4
|
+
- Improve GDK logs
|
|
5
|
+
- Banner will not show when ad adapter is not ready
|
|
6
|
+
- Fix ama_device_id on Android
|
|
7
|
+
|
|
3
8
|
## [0.2.36 - 2023-11-15]
|
|
4
9
|
- Add OnAdShowReadyStatus callback
|
|
5
|
-
-
|
|
10
|
+
- Revamp AdEventTracking
|
|
6
11
|
|
|
7
12
|
## [0.2.35 - 2023-11-14]
|
|
8
13
|
- [Fix] Save UserID
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/Runtime/AmaGDK.Ads.cs
CHANGED
|
@@ -175,6 +175,12 @@ namespace Amanotes.Core
|
|
|
175
175
|
_adConfig = ((AdapterContext)_adapter)?.GetAdapterConfig<AdAdapterConfig>();
|
|
176
176
|
_adapter?.interstitial.StartLoadAd();
|
|
177
177
|
_adapter?.rewardVideo.StartLoadAd();
|
|
178
|
+
|
|
179
|
+
if (_isBannerShowing)
|
|
180
|
+
{
|
|
181
|
+
_isBannerShowing = false;
|
|
182
|
+
ShowBanner(_showingBannerPosition);
|
|
183
|
+
}
|
|
178
184
|
}
|
|
179
185
|
|
|
180
186
|
public static bool HasInterstitial => _adapter.interstitial.hasAd;
|
|
@@ -245,19 +251,28 @@ namespace Amanotes.Core
|
|
|
245
251
|
}
|
|
246
252
|
|
|
247
253
|
private static bool _isBannerShowing;
|
|
254
|
+
private static BannerPosition? _showingBannerPosition = null;
|
|
255
|
+
|
|
248
256
|
public static void ShowBanner(BannerPosition? bannerPosition = null)
|
|
249
257
|
{
|
|
250
258
|
if (_isBannerShowing) return;
|
|
251
259
|
_isBannerShowing = true;
|
|
252
|
-
|
|
253
|
-
|
|
260
|
+
_showingBannerPosition = bannerPosition;
|
|
261
|
+
|
|
262
|
+
if (_adapter == null)
|
|
254
263
|
{
|
|
255
|
-
|
|
264
|
+
//Debug.LogWarning("Adapter not found???");
|
|
265
|
+
return;
|
|
256
266
|
}
|
|
257
|
-
|
|
267
|
+
|
|
268
|
+
if (_adConfig == null)
|
|
258
269
|
{
|
|
259
|
-
|
|
270
|
+
//Debug.LogWarning("_adConfig not found???");
|
|
271
|
+
return;
|
|
260
272
|
}
|
|
273
|
+
|
|
274
|
+
_showingBannerPosition = bannerPosition ?? _adConfig.bannerPosition;
|
|
275
|
+
_adapter.ShowBanner(_showingBannerPosition.Value);
|
|
261
276
|
}
|
|
262
277
|
|
|
263
278
|
public static void HideBanner()
|
|
@@ -289,7 +289,7 @@ namespace Amanotes.Core
|
|
|
289
289
|
string eventNameToSend = GetEventNameToSend(eventData.eventName, countInSession, totalCount);
|
|
290
290
|
if (common.normalizeEventName) NormalizeEventName(ref eventNameToSend);
|
|
291
291
|
|
|
292
|
-
if (showAnalyticsLog) Debug.Log($"AmaGDK | Event <{eventNameToSend}> (in session: {countInSession}, total: {totalCount})\n{JsonUtils.DictionaryToJson(eventData.parameters, true)}");
|
|
292
|
+
if (showAnalyticsLog) Debug.Log($"AmaGDK | [Analytics] Event <{eventNameToSend}> (in session: {countInSession}, total: {totalCount})\n{JsonUtils.DictionaryToJson(eventData.parameters, true)}");
|
|
293
293
|
|
|
294
294
|
common.quality.CheckEventQuality(eventData.eventName, eventData.parameters);
|
|
295
295
|
|
|
@@ -721,7 +721,7 @@ namespace Amanotes.Core
|
|
|
721
721
|
|
|
722
722
|
private static bool IsValidKeyValue(IEventParamsBuilder ap, string key, object value)
|
|
723
723
|
{
|
|
724
|
-
string eventName = (ap as EventParams)
|
|
724
|
+
string eventName = (ap as EventParams)?.eventName;
|
|
725
725
|
if (string.IsNullOrWhiteSpace(key))
|
|
726
726
|
{
|
|
727
727
|
LogWarning($"Param key is empty. Event name: {eventName}!");
|
|
@@ -729,7 +729,7 @@ namespace Amanotes.Core
|
|
|
729
729
|
}
|
|
730
730
|
if (value == null)
|
|
731
731
|
{
|
|
732
|
-
LogWarning($"Param value is null. Event name: {eventName}!");
|
|
732
|
+
LogWarning($"Param value of key <{key}> is null. Event name: {eventName}!");
|
|
733
733
|
return false;
|
|
734
734
|
}
|
|
735
735
|
|
|
@@ -72,11 +72,23 @@ namespace Amanotes.Core
|
|
|
72
72
|
set => _pseudoId = ValidateId(value, ALPHANUMERIC_PATTERN);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
#if UNITY_IOS
|
|
75
76
|
public string AmaDeviceId
|
|
76
77
|
{
|
|
77
78
|
get => _amaDeviceId;
|
|
78
79
|
set => _amaDeviceId = ValidateId(value, ALPHANUMERIC_HYPHEN_PATTERN);
|
|
79
80
|
}
|
|
81
|
+
#endif
|
|
82
|
+
|
|
83
|
+
#if UNITY_ANDROID
|
|
84
|
+
public string AmaDeviceId
|
|
85
|
+
{
|
|
86
|
+
get => _amaDeviceId;
|
|
87
|
+
set => _amaDeviceId = ValidateId(value, ALPHANUMERIC_PATTERN);
|
|
88
|
+
}
|
|
89
|
+
#endif
|
|
90
|
+
|
|
91
|
+
|
|
80
92
|
|
|
81
93
|
public string AppsFlyerId
|
|
82
94
|
{
|
|
@@ -132,7 +144,7 @@ namespace Amanotes.Core
|
|
|
132
144
|
yield return waitForDuration;
|
|
133
145
|
time += WAIT_TIME;
|
|
134
146
|
if (time <= TIME_OUT) continue;
|
|
135
|
-
Logging.LogWarning($"
|
|
147
|
+
Logging.LogWarning($"| UserProfile <init> timeout: {TIME_OUT} (ama_device_id not exist)");
|
|
136
148
|
break;
|
|
137
149
|
}
|
|
138
150
|
}
|
package/Runtime/AmaGDK.cs
CHANGED