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 +2 -2
- package/ios/HybridRnIap.swift +2 -2
- package/ios/RnIapHelper.swift +1 -1
- package/package.json +1 -1
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
|
|
27
|
-
s.platforms = { :ios => '15.0', :tvos => '
|
|
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 = [
|
package/ios/HybridRnIap.swift
CHANGED
|
@@ -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)
|
package/ios/RnIapHelper.swift
CHANGED
|
@@ -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