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.
- package/README.md +2 -2
- package/android/build.gradle +7 -0
- package/android/src/main/java/expo/modules/iap/ExpoIapModule.kt +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/types.d.ts +1 -1
- package/build/types.d.ts.map +1 -1
- package/build/types.js.map +1 -1
- package/bun.lockb +0 -0
- package/coverage/clover.xml +2 -2
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +3 -3
- package/coverage/lcov-report/src/modules/android.ts.html +1 -1
- package/coverage/lcov-report/src/modules/index.html +1 -1
- package/coverage/lcov-report/src/modules/ios.ts.html +1 -1
- package/coverage/lcov-report/src/utils/debug.ts.html +1 -1
- package/coverage/lcov-report/src/utils/errorMapping.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/ios/ExpoIap.podspec +2 -1
- package/openiap-versions.json +3 -3
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/types.ts +1 -1
package/ios/ExpoIap.podspec
CHANGED
|
@@ -22,7 +22,8 @@ Pod::Spec.new do |s|
|
|
|
22
22
|
s.static_framework = true
|
|
23
23
|
|
|
24
24
|
s.dependency 'ExpoModulesCore'
|
|
25
|
-
|
|
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 = {
|
package/openiap-versions.json
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// External dependencies
|
|
2
|
-
import {
|
|
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
|
-
|
|
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
|
|
402
|
+
introductoryPricePaymentModeIOS: PaymentModeIOS;
|
|
403
403
|
introductoryPriceSubscriptionPeriodIOS?: (SubscriptionPeriodIOS | null);
|
|
404
404
|
isFamilyShareableIOS: boolean;
|
|
405
405
|
jsonRepresentationIOS: string;
|