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.
@@ -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
- properties["environment"] = transaction.environment.rawValue
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rampkit-expo-dev",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "The Expo SDK for RampKit. Build, test, and personalize app onboardings with instant updates.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",