react-native-iap 12.15.3 → 12.15.4
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/ios/RNIapIosSk2.swift
CHANGED
|
@@ -718,6 +718,7 @@ class RNIapIosSk2iOS15: Sk2Delegate {
|
|
|
718
718
|
|
|
719
719
|
var result: Product.PurchaseResult?
|
|
720
720
|
|
|
721
|
+
#if swift(>=5.9)
|
|
721
722
|
if #available(iOS 17.0, tvOS 17.0, *) {
|
|
722
723
|
result = try await product.purchase(confirmIn: windowScene, options: options)
|
|
723
724
|
} else {
|
|
@@ -725,6 +726,10 @@ class RNIapIosSk2iOS15: Sk2Delegate {
|
|
|
725
726
|
result = try await product.purchase(options: options)
|
|
726
727
|
#endif
|
|
727
728
|
}
|
|
729
|
+
#elseif !os(visionOS)
|
|
730
|
+
result = try await product.purchase(options: options)
|
|
731
|
+
#endif
|
|
732
|
+
|
|
728
733
|
switch result {
|
|
729
734
|
case .success(let verification):
|
|
730
735
|
debugMessage("Purchase Successful")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-iap",
|
|
3
|
-
"version": "12.15.
|
|
3
|
+
"version": "12.15.4",
|
|
4
4
|
"description": "React Native In App Purchase Module.",
|
|
5
5
|
"repository": "https://github.com/dooboolab-community/react-native-iap",
|
|
6
6
|
"author": "hyochan <dooboolab@gmail.com> (https://github.com/hyochan)",
|