react-native-iap 14.7.10 → 14.7.11

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/NitroIap.podspec CHANGED
@@ -23,8 +23,8 @@ Pod::Spec.new do |s|
23
23
  # React Native IAP uses StoreKit 2 via OpenIAP, which requires iOS 15+.
24
24
  # Enforce this at the podspec level so projects with a lower deployment target
25
25
  # get a clear CocoaPods error instead of a vague SwiftCompile failure.
26
- # Platform versions match OpenIAP requirements: iOS 15+, macOS 14+, tvOS 15+, watchOS 8+
27
- s.platforms = { :ios => '15.0', :tvos => '15.0', :macos => '14.0', :watchos => '8.0', :visionos => 1.0 }
26
+ # Platform versions match OpenIAP requirements: iOS 15+, macOS 14+, tvOS 16+, watchOS 8+
27
+ s.platforms = { :ios => '15.0', :tvos => '16.0', :macos => '14.0', :watchos => '8.0', :visionos => 1.0 }
28
28
  s.source = { :git => "https://github.com/hyochan/react-native-iap.git", :tag => "#{s.version}" }
29
29
 
30
30
  s.source_files = [
@@ -132,7 +132,7 @@ class HybridRnIap: HybridRnIapSpec {
132
132
  products.append(product)
133
133
  seenIds.insert(product.id)
134
134
  }
135
- await MainActor.run {
135
+ await MainActor.run { [products] in
136
136
  products.forEach { self.productTypeBySku[$0.id] = $0.type.lowercased() }
137
137
  }
138
138
  RnIapLog.result(
@@ -327,7 +327,7 @@ class HybridRnIap: HybridRnIapSpec {
327
327
  let sanitizedPayload = RnIapHelper.sanitizeDictionary(purchasePayload)
328
328
  RnIapLog.payload("finishTransaction.nativePayload", sanitizedPayload)
329
329
  let purchaseInput = try OpenIapSerialization.purchaseInput(from: purchasePayload)
330
- try await OpenIapModule.shared.finishTransaction(purchase: purchaseInput, isConsumable: nil)
330
+ _ = try await OpenIapModule.shared.finishTransaction(purchase: purchaseInput, isConsumable: nil)
331
331
  RnIapLog.result("finishTransaction", true)
332
332
  await MainActor.run {
333
333
  self.purchasePayloadById.removeValue(forKey: iosParams.transactionId)
@@ -5,7 +5,7 @@ import OpenIAP
5
5
  /// Similar to Android's OpenIapException, this wraps errors with JSON-serialized messages.
6
6
  /// Uses NSError for better compatibility with Objective-C bridging in Nitro.
7
7
  @available(iOS 15.0, *)
8
- class OpenIapException: NSError {
8
+ class OpenIapException: NSError, @unchecked Sendable {
9
9
  static let domain = "com.margelo.nitro.rniap"
10
10
 
11
11
  convenience init(_ json: String) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "14.7.10",
3
+ "version": "14.7.11",
4
4
  "description": "React Native In-App Purchases module for iOS and Android using Nitro",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",