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.
@@ -5,7 +5,7 @@ RNIap_compileSdkVersion=33
5
5
  RNIap_buildToolsVersion=33.0.0
6
6
  RNIap_ndkversion=23.1.7779620
7
7
  RNIap_playServicesVersion=18.1.0
8
- RNIap_amazonSdkVersion=3.0.4
8
+ RNIap_amazonSdkVersion=3.0.5
9
9
  RNIap_playBillingSdkVersion=7.0.0
10
10
 
11
11
  android.useAndroidX=true
@@ -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",
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)",