react-native-iap 12.5.0 → 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 (26) hide show
  1. package/android/build.gradle +2 -1
  2. package/android/gradle.properties +3 -2
  3. package/lib/typescript/plugin/src/withIAP.d.ts +9 -0
  4. package/lib/typescript/{eventEmitter.d.ts → src/eventEmitter.d.ts} +0 -0
  5. package/lib/typescript/{hooks → src/hooks}/index.d.ts +0 -0
  6. package/lib/typescript/{hooks → src/hooks}/useIAP.d.ts +0 -0
  7. package/lib/typescript/{hooks → src/hooks}/withIAPContext.d.ts +0 -0
  8. package/lib/typescript/{iap.d.ts → src/iap.d.ts} +0 -0
  9. package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  10. package/lib/typescript/{internal → src/internal}/enhancedFetch.d.ts +0 -0
  11. package/lib/typescript/{internal → src/internal}/fillProductsWithAdditionalData.d.ts +0 -0
  12. package/lib/typescript/{internal → src/internal}/index.d.ts +0 -0
  13. package/lib/typescript/{internal → src/internal}/platform.d.ts +0 -0
  14. package/lib/typescript/{modules → src/modules}/amazon.d.ts +0 -0
  15. package/lib/typescript/{modules → src/modules}/android.d.ts +0 -0
  16. package/lib/typescript/{modules → src/modules}/common.d.ts +0 -0
  17. package/lib/typescript/{modules → src/modules}/index.d.ts +0 -0
  18. package/lib/typescript/{modules → src/modules}/ios.d.ts +0 -0
  19. package/lib/typescript/{modules → src/modules}/iosSk2.d.ts +0 -0
  20. package/lib/typescript/{purchaseError.d.ts → src/purchaseError.d.ts} +0 -0
  21. package/lib/typescript/{types → src/types}/amazon.d.ts +0 -0
  22. package/lib/typescript/{types → src/types}/android.d.ts +0 -0
  23. package/lib/typescript/{types → src/types}/apple.d.ts +0 -0
  24. package/lib/typescript/{types → src/types}/appleSk2.d.ts +0 -0
  25. package/lib/typescript/{types → src/types}/index.d.ts +0 -0
  26. package/package.json +10 -3
@@ -154,6 +154,7 @@ def androidXVersion = getExtOrDefault("androidXVersion")
154
154
  def androidXAnnotation = getExtOrDefault("androidXAnnotation")
155
155
  def androidXBrowser = getExtOrDefault("androidXBrowser")
156
156
  def amazonSdkVersion = getExtOrDefault("amazonSdkVersion")
157
+ def playBillingSdkVersion = getExtOrDefault("playBillingSdkVersion")
157
158
 
158
159
  dependencies {
159
160
  implementation "com.facebook.react:react-native:+"
@@ -162,7 +163,7 @@ dependencies {
162
163
  testImplementation "junit:junit:4.13.2"
163
164
  testImplementation "io.mockk:mockk:1.12.4"
164
165
 
165
- playImplementation "com.android.billingclient:billing-ktx:5.0.0"
166
+ playImplementation "com.android.billingclient:billing-ktx:$playBillingSdkVersion"
166
167
  playImplementation "com.google.android.gms:play-services-base:$playServicesVersion"
167
168
 
168
169
  amazonImplementation "com.amazon.device:amazon-appstore-sdk:$amazonSdkVersion"
@@ -1,11 +1,12 @@
1
- RNIap_kotlinVersion=1.7.0
1
+ RNIap_kotlinVersion=1.7.21
2
2
  RNIap_minSdkVersion=21
3
3
  RNIap_targetSdkVersion=31
4
4
  RNIap_compileSdkVersion=31
5
5
  RNIap_buildToolsVersion=30.0.2
6
6
  RNIap_ndkversion=21.4.7075529
7
- RNIap_playServicesVersion=17.6.0
7
+ RNIap_playServicesVersion=18.1.0
8
8
  RNIap_amazonSdkVersion=3.0.3
9
+ RNIap_playBillingSdkVersion=5.1.0
9
10
 
10
11
  android.useAndroidX=true
11
12
  android.enableJetifier=true
@@ -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.0",
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
  }