react-native-iap 8.5.0 → 8.5.3

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 (37) hide show
  1. package/.prettierignore +6 -0
  2. package/.swiftlint.yml +11 -0
  3. package/babel.config.js +6 -4
  4. package/{index.d.ts → index.ts} +2 -0
  5. package/ios/RNIapIos.m +1 -2
  6. package/ios/RNIapIos.swift +857 -883
  7. package/jest.config.js +8 -12
  8. package/package.json +16 -18
  9. package/android/.gradle/6.8.3/executionHistory/executionHistory.lock +0 -0
  10. package/android/.gradle/6.8.3/fileChanges/last-build.bin +0 -0
  11. package/android/.gradle/6.8.3/fileHashes/fileHashes.lock +0 -0
  12. package/android/.gradle/6.8.3/gc.properties +0 -0
  13. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  14. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  15. package/android/.gradle/checksums/checksums.lock +0 -0
  16. package/android/.gradle/configuration-cache/gc.properties +0 -0
  17. package/android/.gradle/vcs-1/gc.properties +0 -0
  18. package/index.js +0 -3
  19. package/index.js.flow +0 -9
  20. package/src/__test__/iap.test.d.ts +0 -1
  21. package/src/__test__/iap.test.js +0 -59
  22. package/src/hooks/useIAP.d.ts +0 -22
  23. package/src/hooks/useIAP.js +0 -141
  24. package/src/hooks/withIAPContext.d.ts +0 -22
  25. package/src/hooks/withIAPContext.js +0 -150
  26. package/src/iap.d.ts +0 -193
  27. package/src/iap.js +0 -631
  28. package/src/index.d.ts +0 -4
  29. package/src/index.js +0 -4
  30. package/src/types/amazon.d.ts +0 -23
  31. package/src/types/amazon.js +0 -1
  32. package/src/types/android.d.ts +0 -47
  33. package/src/types/android.js +0 -22
  34. package/src/types/apple.d.ts +0 -424
  35. package/src/types/apple.js +0 -165
  36. package/src/types/index.d.ts +0 -125
  37. package/src/types/index.js +0 -40
@@ -0,0 +1,6 @@
1
+ IapExample/vendor
2
+ IapExample/ios
3
+ IapExample/android
4
+ lib
5
+ ios
6
+ android
package/.swiftlint.yml ADDED
@@ -0,0 +1,11 @@
1
+ opt_in_rules:
2
+ - vertical_whitespace_between_cases
3
+ - vertical_whitespace_closing_braces
4
+ - vertical_whitespace_opening_braces
5
+ - vertical_parameter_alignment_on_call
6
+ - operator_usage_whitespace
7
+ - redundant_type_annotation
8
+
9
+ indentation: 2
10
+ vertical_whitespace_closing_braces: true
11
+ vertical_whitespace_opening_braces: true
package/babel.config.js CHANGED
@@ -1,8 +1,10 @@
1
1
  module.exports = {
2
- presets: ['module:metro-react-native-babel-preset',
3
- '@babel/preset-typescript',
4
- "@babel/preset-env",
5
- '@babel/preset-react',],
2
+ presets: [
3
+ 'module:metro-react-native-babel-preset',
4
+ '@babel/preset-typescript',
5
+ '@babel/preset-env',
6
+ '@babel/preset-react',
7
+ ],
6
8
  plugins: [
7
9
  '@babel/plugin-proposal-class-properties',
8
10
  '@babel/plugin-proposal-private-methods',
@@ -1,3 +1,5 @@
1
1
  export * from './src';
2
+
2
3
  import * as iap from './src/iap';
4
+
3
5
  export default iap;
package/ios/RNIapIos.m CHANGED
@@ -18,9 +18,8 @@ RCT_EXTERN_METHOD(getAvailableItems:
18
18
  reject:(RCTPromiseRejectBlock)reject)
19
19
  RCT_EXTERN_METHOD(buyProduct:
20
20
  (NSString*)sku
21
- appAccountToken:(NSString*)appAccountToken
22
21
  andDangerouslyFinishTransactionAutomatically:(BOOL)andDangerouslyFinishTransactionAutomatically
23
- applicationUsername:(NSString)applicationUsername
22
+ applicationUsername:(NSString*)applicationUsername
24
23
  resolve:(RCTPromiseResolveBlock)resolve
25
24
  reject:(RCTPromiseRejectBlock)reject)
26
25
  RCT_EXTERN_METHOD(buyProductWithOffer: