com.amanotes.gdk 0.2.43 → 0.2.45-1
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 +9 -0
- 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/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.5.2.unitypackage +0 -0
- package/Packages/IronSourceAdapter_v7.5.2.unitypackage.meta +7 -0
- package/Packages/RevenueCatAdapter_v6.0.0.unitypackage +0 -0
- package/Runtime/AmaGDK.IAP.cs +23 -18
- package/Runtime/AmaGDK.UserProfile.cs +1 -1
- package/Runtime/AmaGDK.cs +1 -1
- package/package.json +1 -1
- /package/Packages/{IronSourceAdapter_v7.2.6.unitypackage → IronsourceAdapter_v7.2.6.unitypackage} +0 -0
- /package/Packages/{IronSourceAdapter_v7.2.6.unitypackage.meta → IronsourceAdapter_v7.2.6.unitypackage.meta} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.45-1 - 2024-01-16]
|
|
4
|
+
- [Fix] Purchase product in Editor
|
|
5
|
+
|
|
6
|
+
## [0.2.45 - 2023-12-13]
|
|
7
|
+
- [Fix] Able to assign ama_device_id in Editor
|
|
8
|
+
|
|
9
|
+
## [0.2.44 - 2023-12-08]
|
|
10
|
+
- [Fix] Auto log Ad events
|
|
11
|
+
|
|
3
12
|
## [0.2.43 - 2023-12-06]
|
|
4
13
|
- [Fix] Support AmaDeviceId on Standalone
|
|
5
14
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/Runtime/AmaGDK.IAP.cs
CHANGED
|
@@ -38,13 +38,30 @@ namespace Amanotes.Core
|
|
|
38
38
|
public static IPurchaseBuilder Purchase(string productId)
|
|
39
39
|
{
|
|
40
40
|
var result = new PurchaseContext();
|
|
41
|
-
|
|
41
|
+
ExecuteInNextFrame(() =>
|
|
42
42
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
#if UNITY_EDITOR
|
|
44
|
+
if (AdapterConfig.allPurchaseSuccessInEditor)
|
|
45
|
+
{
|
|
46
|
+
PurchaseSuccess s = new PurchaseSuccess
|
|
47
|
+
{
|
|
48
|
+
productIds = new[] { productId },
|
|
49
|
+
isSandbox = true
|
|
50
|
+
};
|
|
51
|
+
result.onSuccess?.Invoke(s);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
if (!dicProducts.ContainsKey(productId))
|
|
57
|
+
{
|
|
58
|
+
LogWarning($"[IAP] Product {productId} is not found");
|
|
59
|
+
result.onFail?.Invoke(new PurchaseError($"Product {productId} is not found"));
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
result.Purchase(dicProducts[productId]);
|
|
64
|
+
});
|
|
48
65
|
return result;
|
|
49
66
|
}
|
|
50
67
|
|
|
@@ -516,18 +533,6 @@ namespace Amanotes.Core.Internal
|
|
|
516
533
|
|
|
517
534
|
public void Purchase(ProductInfo productInfo)
|
|
518
535
|
{
|
|
519
|
-
#if UNITY_EDITOR
|
|
520
|
-
if (AdapterConfig.allPurchaseSuccessInEditor)
|
|
521
|
-
{
|
|
522
|
-
DoOnSuccess(new PurchaseSuccess
|
|
523
|
-
{
|
|
524
|
-
productIds = new[] { productInfo.id },
|
|
525
|
-
isSandbox = true
|
|
526
|
-
});
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
#endif
|
|
530
|
-
|
|
531
536
|
if (!string.IsNullOrWhiteSpace(discountId))
|
|
532
537
|
{
|
|
533
538
|
AmaGDK.IAP.Adapter?.PurchaseDiscount(productInfo, discountId, DoOnSuccess, DoOnFail);
|
package/Runtime/AmaGDK.cs
CHANGED
package/package.json
CHANGED
/package/Packages/{IronSourceAdapter_v7.2.6.unitypackage → IronsourceAdapter_v7.2.6.unitypackage}
RENAMED
|
File without changes
|
|
File without changes
|