react-native-iap 14.4.3 → 14.4.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.
|
@@ -126,7 +126,7 @@ class HybridRnIap : HybridRnIapSpec() {
|
|
|
126
126
|
openIap.initConnection()
|
|
127
127
|
}
|
|
128
128
|
} catch (err: Throwable) {
|
|
129
|
-
val error = OpenIAPError.InitConnection
|
|
129
|
+
val error = OpenIAPError.InitConnection
|
|
130
130
|
RnIapLog.failure("initConnection.native", err)
|
|
131
131
|
throw Exception(
|
|
132
132
|
toErrorJson(
|
|
@@ -137,7 +137,7 @@ class HybridRnIap : HybridRnIapSpec() {
|
|
|
137
137
|
)
|
|
138
138
|
}
|
|
139
139
|
if (!ok) {
|
|
140
|
-
val error = OpenIAPError.InitConnection
|
|
140
|
+
val error = OpenIAPError.InitConnection
|
|
141
141
|
RnIapLog.failure("initConnection.native", Exception(error.message))
|
|
142
142
|
throw Exception(
|
|
143
143
|
toErrorJson(
|
|
@@ -279,7 +279,7 @@ class HybridRnIap : HybridRnIapSpec() {
|
|
|
279
279
|
}
|
|
280
280
|
fetched.firstOrNull()?.let { productTypeBySku[it.id] = it.type.rawValue }
|
|
281
281
|
if (!productTypeBySku.containsKey(sku)) {
|
|
282
|
-
sendPurchaseError(toErrorResult(OpenIAPError.SkuNotFound(sku)
|
|
282
|
+
sendPurchaseError(toErrorResult(OpenIAPError.SkuNotFound(sku)))
|
|
283
283
|
return@async defaultResult
|
|
284
284
|
}
|
|
285
285
|
}
|
|
@@ -363,7 +363,7 @@ class HybridRnIap : HybridRnIapSpec() {
|
|
|
363
363
|
RnIapLog.failure("requestPurchase", e)
|
|
364
364
|
sendPurchaseError(
|
|
365
365
|
toErrorResult(
|
|
366
|
-
error = OpenIAPError.PurchaseFailed
|
|
366
|
+
error = OpenIAPError.PurchaseFailed,
|
|
367
367
|
debugMessage = e.message,
|
|
368
368
|
messageOverride = e.message
|
|
369
369
|
)
|
|
@@ -446,7 +446,7 @@ class HybridRnIap : HybridRnIapSpec() {
|
|
|
446
446
|
try {
|
|
447
447
|
initConnection().await()
|
|
448
448
|
} catch (e: Exception) {
|
|
449
|
-
val err = OpenIAPError.InitConnection
|
|
449
|
+
val err = OpenIAPError.InitConnection
|
|
450
450
|
return@async Variant_Boolean_NitroPurchaseResult.Second(
|
|
451
451
|
NitroPurchaseResult(
|
|
452
452
|
responseCode = -1.0,
|
|
@@ -476,7 +476,7 @@ class HybridRnIap : HybridRnIapSpec() {
|
|
|
476
476
|
RnIapLog.result("finishTransaction", mapOf("success" to true))
|
|
477
477
|
result
|
|
478
478
|
} catch (e: Exception) {
|
|
479
|
-
val err = OpenIAPError.BillingError
|
|
479
|
+
val err = OpenIAPError.BillingError
|
|
480
480
|
RnIapLog.failure("finishTransaction", e)
|
|
481
481
|
Variant_Boolean_NitroPurchaseResult.Second(
|
|
482
482
|
NitroPurchaseResult(
|
|
@@ -909,7 +909,7 @@ class HybridRnIap : HybridRnIapSpec() {
|
|
|
909
909
|
|
|
910
910
|
} catch (e: Exception) {
|
|
911
911
|
val debugMessage = e.message
|
|
912
|
-
val error = OpenIAPError.InvalidReceipt
|
|
912
|
+
val error = OpenIAPError.InvalidReceipt
|
|
913
913
|
throw Exception(
|
|
914
914
|
toErrorJson(
|
|
915
915
|
error = error,
|
package/package.json
CHANGED