expo-iap 3.1.0 → 3.1.1-rc.2
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/build/ExpoIapModule.d.ts +1 -0
- package/build/ExpoIapModule.d.ts.map +1 -1
- package/build/ExpoIapModule.js +29 -4
- package/build/ExpoIapModule.js.map +1 -1
- package/build/utils/constants.d.ts +2 -0
- package/build/utils/constants.d.ts.map +1 -1
- package/build/utils/constants.js +9 -2
- package/build/utils/constants.js.map +1 -1
- package/coverage/clover.xml +497 -0
- package/coverage/coverage-final.json +6 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +161 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/ExpoIap.types.ts.html +1243 -0
- package/coverage/lcov-report/src/PurchaseError.ts.html +787 -0
- package/coverage/lcov-report/src/helpers/index.html +116 -0
- package/coverage/lcov-report/src/helpers/subscription.ts.html +496 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/index.ts.html +1993 -0
- package/coverage/lcov-report/src/modules/android.ts.html +550 -0
- package/coverage/lcov-report/src/modules/index.html +131 -0
- package/coverage/lcov-report/src/modules/ios.ts.html +1222 -0
- package/coverage/lcov-report/src/purchase-error.ts.html +880 -0
- package/coverage/lcov-report/src/types/ExpoIapAndroid.types.ts.html +493 -0
- package/coverage/lcov-report/src/types/index.html +116 -0
- package/coverage/lcov-report/src/useIap.ts.html +1483 -0
- package/coverage/lcov-report/src/utils/errorMapping.ts.html +1069 -0
- package/coverage/lcov-report/src/utils/index.html +116 -0
- package/coverage/lcov-report/src/utils/purchase.ts.html +241 -0
- package/coverage/lcov.info +929 -0
- package/expo-module.config.json +10 -3
- package/ios/onside/OnsideIapModule.swift +489 -0
- package/package.json +4 -3
- package/plugin/build/withIAP.d.ts +22 -9
- package/plugin/build/withIAP.js +157 -9
- package/plugin/jest.config.js +13 -3
- package/plugin/src/expoConfig.augmentation.d.ts +38 -0
- package/plugin/src/withIAP.ts +258 -18
- package/plugin/tsconfig.json +2 -1
- package/plugin/tsconfig.tsbuildinfo +1 -1
- package/src/ExpoIapModule.ts +45 -4
- package/src/utils/constants.ts +11 -2
package/src/utils/constants.ts
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
// Centralized product ID constants for examples and internal usage
|
|
2
2
|
// Rename guide: subscriptionIds -> SUBSCRIPTION_PRODUCT_IDS, PRODUCT_IDS remains the same name
|
|
3
3
|
|
|
4
|
-
// One-time purchase product IDs
|
|
5
|
-
export const
|
|
4
|
+
// One-time purchase product IDs split by consumption behavior
|
|
5
|
+
export const CONSUMABLE_PRODUCT_IDS: string[] = [
|
|
6
6
|
'dev.hyo.martie.10bulbs',
|
|
7
7
|
'dev.hyo.martie.30bulbs',
|
|
8
8
|
];
|
|
9
9
|
|
|
10
|
+
export const NON_CONSUMABLE_PRODUCT_IDS: string[] = [
|
|
11
|
+
'dev.hyo.martie.certified',
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
export const PRODUCT_IDS: string[] = [
|
|
15
|
+
...CONSUMABLE_PRODUCT_IDS,
|
|
16
|
+
...NON_CONSUMABLE_PRODUCT_IDS,
|
|
17
|
+
];
|
|
18
|
+
|
|
10
19
|
// Subscription product IDs
|
|
11
20
|
export const SUBSCRIPTION_PRODUCT_IDS: string[] = ['dev.hyo.martie.premium'];
|
|
12
21
|
|