expo-iap 3.1.19 → 3.1.21

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.
@@ -22,7 +22,8 @@ Pod::Spec.new do |s|
22
22
  s.static_framework = true
23
23
 
24
24
  s.dependency 'ExpoModulesCore'
25
- s.dependency 'openiap', versions['apple']
25
+ # Use ~> to allow patch updates (e.g., 1.2.30 -> 1.2.31, but not 1.3.0)
26
+ s.dependency 'openiap', "~> #{versions['apple']}"
26
27
 
27
28
  # Swift/Objective-C compatibility
28
29
  s.pod_target_xcconfig = {
@@ -1,5 +1,5 @@
1
1
  {
2
- "apple": "1.2.25",
3
- "google": "1.3.1",
4
- "gql": "1.2.2"
2
+ "apple": "1.2.30",
3
+ "google": "1.3.3",
4
+ "gql": "1.2.3"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-iap",
3
- "version": "3.1.19",
3
+ "version": "3.1.21",
4
4
  "description": "In App Purchase module in Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // External dependencies
2
- import {NativeModulesProxy} from 'expo-modules-core';
2
+ import {requireNativeModule} from 'expo-modules-core';
3
3
  import {Platform} from 'react-native';
4
4
 
5
5
  // Internal modules
@@ -80,7 +80,7 @@ type ExpoIapEmitter = {
80
80
 
81
81
  // Ensure the emitter has proper EventEmitter interface
82
82
  export const emitter = (ExpoIapModule ||
83
- NativeModulesProxy.ExpoIap) as ExpoIapEmitter;
83
+ requireNativeModule('ExpoIap')) as ExpoIapEmitter;
84
84
 
85
85
  /**
86
86
  * TODO(v3.1.0): Remove legacy 'inapp' alias once downstream apps migrate to 'in-app'.
package/src/types.ts CHANGED
@@ -399,7 +399,7 @@ export interface ProductSubscriptionIOS extends ProductCommon {
399
399
  introductoryPriceAsAmountIOS?: (string | null);
400
400
  introductoryPriceIOS?: (string | null);
401
401
  introductoryPriceNumberOfPeriodsIOS?: (string | null);
402
- introductoryPricePaymentModeIOS?: (PaymentModeIOS | null);
402
+ introductoryPricePaymentModeIOS: PaymentModeIOS;
403
403
  introductoryPriceSubscriptionPeriodIOS?: (SubscriptionPeriodIOS | null);
404
404
  isFamilyShareableIOS: boolean;
405
405
  jsonRepresentationIOS: string;