react-native-iap 12.5.1 → 12.6.0

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 (24) hide show
  1. package/lib/typescript/plugin/src/withIAP.d.ts +9 -0
  2. package/lib/typescript/{eventEmitter.d.ts → src/eventEmitter.d.ts} +0 -0
  3. package/lib/typescript/{hooks → src/hooks}/index.d.ts +0 -0
  4. package/lib/typescript/{hooks → src/hooks}/useIAP.d.ts +0 -0
  5. package/lib/typescript/{hooks → src/hooks}/withIAPContext.d.ts +0 -0
  6. package/lib/typescript/{iap.d.ts → src/iap.d.ts} +0 -0
  7. package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  8. package/lib/typescript/{internal → src/internal}/enhancedFetch.d.ts +0 -0
  9. package/lib/typescript/{internal → src/internal}/fillProductsWithAdditionalData.d.ts +0 -0
  10. package/lib/typescript/{internal → src/internal}/index.d.ts +0 -0
  11. package/lib/typescript/{internal → src/internal}/platform.d.ts +0 -0
  12. package/lib/typescript/{modules → src/modules}/amazon.d.ts +0 -0
  13. package/lib/typescript/{modules → src/modules}/android.d.ts +0 -0
  14. package/lib/typescript/{modules → src/modules}/common.d.ts +0 -0
  15. package/lib/typescript/{modules → src/modules}/index.d.ts +0 -0
  16. package/lib/typescript/{modules → src/modules}/ios.d.ts +0 -0
  17. package/lib/typescript/{modules → src/modules}/iosSk2.d.ts +0 -0
  18. package/lib/typescript/{purchaseError.d.ts → src/purchaseError.d.ts} +0 -0
  19. package/lib/typescript/{types → src/types}/amazon.d.ts +0 -0
  20. package/lib/typescript/{types → src/types}/android.d.ts +0 -0
  21. package/lib/typescript/{types → src/types}/apple.d.ts +0 -0
  22. package/lib/typescript/{types → src/types}/appleSk2.d.ts +0 -0
  23. package/lib/typescript/{types → src/types}/index.d.ts +0 -0
  24. package/package.json +10 -3
@@ -0,0 +1,9 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ declare type PaymentProvider = 'Amazon AppStore' | 'both' | 'Play Store';
3
+ export declare const modifyAppBuildGradle: (buildGradle: string, paymentProvider: PaymentProvider) => string;
4
+ export declare const modifyProjectBuildGradle: (buildGradle: string) => string;
5
+ interface Props {
6
+ paymentProvider?: PaymentProvider;
7
+ }
8
+ declare const _default: ConfigPlugin<Props | undefined>;
9
+ export default _default;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "12.5.1",
3
+ "version": "12.6.0",
4
4
  "description": "React Native In App Purchase Module.",
5
5
  "repository": "https://github.com/dooboolab/react-native-iap",
6
6
  "author": "dooboolab <support@dooboolab.com> (https://github.com/dooboolab)",
@@ -55,7 +55,7 @@
55
55
  "!**/__mocks__"
56
56
  ],
57
57
  "scripts": {
58
- "prepare": "bob build",
58
+ "prepare": "bob build && npm run clean:plugin && npm run build:plugin",
59
59
  "release": "release-it",
60
60
  "example": "yarn --cwd IapExample",
61
61
  "test": "jest",
@@ -67,7 +67,10 @@
67
67
  "lint:swift": "swiftlint lint --fix --format --path ios/*.swift --config .swiftlint.yml",
68
68
  "format": "git ls-files -m | xargs yarn prettier --write --ignore-unknown --no-error-on-unmatched-pattern",
69
69
  "bootstrap": "yarn example && yarn && yarn example pods",
70
- "gen:doc": "typedoc"
70
+ "gen:doc": "typedoc",
71
+ "build:plugin": "tsc --build plugin",
72
+ "clean:plugin": "expo-module clean plugin",
73
+ "lint:plugin": "eslint plugin/src/*"
71
74
  },
72
75
  "devDependencies": {
73
76
  "@babel/eslint-parser": "7.18.9",
@@ -89,6 +92,7 @@
89
92
  "eslint-plugin-jest": "26.8.2",
90
93
  "eslint-plugin-prettier": "4.2.1",
91
94
  "eslint-plugin-simple-import-sort": "7.0.0",
95
+ "expo-module-scripts": "^3.0.4",
92
96
  "jest": "28.1.3",
93
97
  "monolinter": "1.0.4",
94
98
  "pod-install": "0.1.38",
@@ -108,5 +112,8 @@
108
112
  "peerDependencies": {
109
113
  "react": ">=16.13.1",
110
114
  "react-native": ">=0.65.1"
115
+ },
116
+ "dependencies": {
117
+ "@expo/config-plugins": "^5.0.4"
111
118
  }
112
119
  }