rampkit-expo-dev 0.0.46 → 0.0.48
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/RampKitModule.swift +6 -2
- package/package.json +1 -1
package/ios/RampKitModule.swift
CHANGED
|
@@ -480,7 +480,7 @@ public class RampKitModule: Module {
|
|
|
480
480
|
eventName = "purchase_completed"
|
|
481
481
|
case .nonRenewable:
|
|
482
482
|
eventName = "purchase_completed"
|
|
483
|
-
default:
|
|
483
|
+
@unknown default:
|
|
484
484
|
eventName = "purchase_completed"
|
|
485
485
|
}
|
|
486
486
|
}
|
|
@@ -498,7 +498,11 @@ public class RampKitModule: Module {
|
|
|
498
498
|
|
|
499
499
|
properties["quantity"] = transaction.purchasedQuantity
|
|
500
500
|
properties["productType"] = mapProductType(transaction.productType)
|
|
501
|
-
|
|
501
|
+
|
|
502
|
+
// environment property is only available in iOS 16.0+
|
|
503
|
+
if #available(iOS 16.0, *) {
|
|
504
|
+
properties["environment"] = transaction.environment.rawValue
|
|
505
|
+
}
|
|
502
506
|
|
|
503
507
|
if let webOrderLineItemID = transaction.webOrderLineItemID {
|
|
504
508
|
properties["webOrderLineItemId"] = webOrderLineItemID
|
package/package.json
CHANGED