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.
Files changed (47) hide show
  1. package/build/ExpoIapModule.d.ts +1 -0
  2. package/build/ExpoIapModule.d.ts.map +1 -1
  3. package/build/ExpoIapModule.js +29 -4
  4. package/build/ExpoIapModule.js.map +1 -1
  5. package/build/utils/constants.d.ts +2 -0
  6. package/build/utils/constants.d.ts.map +1 -1
  7. package/build/utils/constants.js +9 -2
  8. package/build/utils/constants.js.map +1 -1
  9. package/coverage/clover.xml +497 -0
  10. package/coverage/coverage-final.json +6 -0
  11. package/coverage/lcov-report/base.css +224 -0
  12. package/coverage/lcov-report/block-navigation.js +87 -0
  13. package/coverage/lcov-report/favicon.png +0 -0
  14. package/coverage/lcov-report/index.html +161 -0
  15. package/coverage/lcov-report/prettify.css +1 -0
  16. package/coverage/lcov-report/prettify.js +2 -0
  17. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  18. package/coverage/lcov-report/sorter.js +196 -0
  19. package/coverage/lcov-report/src/ExpoIap.types.ts.html +1243 -0
  20. package/coverage/lcov-report/src/PurchaseError.ts.html +787 -0
  21. package/coverage/lcov-report/src/helpers/index.html +116 -0
  22. package/coverage/lcov-report/src/helpers/subscription.ts.html +496 -0
  23. package/coverage/lcov-report/src/index.html +116 -0
  24. package/coverage/lcov-report/src/index.ts.html +1993 -0
  25. package/coverage/lcov-report/src/modules/android.ts.html +550 -0
  26. package/coverage/lcov-report/src/modules/index.html +131 -0
  27. package/coverage/lcov-report/src/modules/ios.ts.html +1222 -0
  28. package/coverage/lcov-report/src/purchase-error.ts.html +880 -0
  29. package/coverage/lcov-report/src/types/ExpoIapAndroid.types.ts.html +493 -0
  30. package/coverage/lcov-report/src/types/index.html +116 -0
  31. package/coverage/lcov-report/src/useIap.ts.html +1483 -0
  32. package/coverage/lcov-report/src/utils/errorMapping.ts.html +1069 -0
  33. package/coverage/lcov-report/src/utils/index.html +116 -0
  34. package/coverage/lcov-report/src/utils/purchase.ts.html +241 -0
  35. package/coverage/lcov.info +929 -0
  36. package/expo-module.config.json +10 -3
  37. package/ios/onside/OnsideIapModule.swift +489 -0
  38. package/package.json +4 -3
  39. package/plugin/build/withIAP.d.ts +22 -9
  40. package/plugin/build/withIAP.js +157 -9
  41. package/plugin/jest.config.js +13 -3
  42. package/plugin/src/expoConfig.augmentation.d.ts +38 -0
  43. package/plugin/src/withIAP.ts +258 -18
  44. package/plugin/tsconfig.json +2 -1
  45. package/plugin/tsconfig.tsbuildinfo +1 -1
  46. package/src/ExpoIapModule.ts +45 -4
  47. package/src/utils/constants.ts +11 -2
@@ -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 (consumables/non-consumables)
5
- export const PRODUCT_IDS: string[] = [
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