react-native-purchases 7.17.0 → 7.18.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.
@@ -25,6 +25,6 @@ Pod::Spec.new do |spec|
25
25
  ]
26
26
 
27
27
  spec.dependency "React-Core"
28
- spec.dependency "PurchasesHybridCommon", '9.0.0'
28
+ spec.dependency "PurchasesHybridCommon", '9.3.0'
29
29
  spec.swift_version = '5.7'
30
30
  end
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '7.17.0'
32
+ versionName '7.18.0'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -121,6 +121,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
121
121
  dependencies {
122
122
  //noinspection GradleDynamicVersion
123
123
  api 'com.facebook.react:react-native:+'
124
- implementation 'com.revenuecat.purchases:purchases-hybrid-common:9.0.0'
124
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:9.3.0'
125
125
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
126
126
  }
@@ -45,7 +45,7 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd
45
45
  private static final String CUSTOMER_INFO_UPDATED = "Purchases-CustomerInfoUpdated";
46
46
  private static final String LOG_HANDLER_EVENT = "Purchases-LogHandlerEvent";
47
47
  public static final String PLATFORM_NAME = "react-native";
48
- public static final String PLUGIN_VERSION = "7.17.0";
48
+ public static final String PLUGIN_VERSION = "7.18.0";
49
49
 
50
50
  private final ReactApplicationContext reactContext;
51
51
 
package/ios/RNPurchases.m CHANGED
@@ -472,7 +472,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
472
472
  }
473
473
 
474
474
  - (NSString *)platformFlavorVersion {
475
- return @"7.17.0";
475
+ return @"7.18.0";
476
476
  }
477
477
 
478
478
  @end
@@ -8,10 +8,6 @@
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
10
  3552B97D252CF5900098008A /* PurchasesPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3552B97C252CF5900098008A /* PurchasesPlugin.swift */; };
11
- 35BFF4DC247DDAD3008B64DA /* PurchasesHybridCommon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35BFF4DB247DDAD3008B64DA /* PurchasesHybridCommon.framework */; };
12
- 35D0736B20AD0F740012EB8C /* Purchases.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35D0736A20AD0F740012EB8C /* Purchases.framework */; };
13
- 4F72072A2AF30E7E0017395F /* RNPaywallManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F7207292AF30E7E0017395F /* RNPaywallManager.m */; };
14
- 4F7D88D52AF9666800855875 /* RNPaywalls.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F7D88D32AF9666800855875 /* RNPaywalls.m */; };
15
11
  B3E7B58A1CC2AC0600A0062D /* RNPurchases.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNPurchases.m */; };
16
12
  /* End PBXBuildFile section */
17
13
 
@@ -31,12 +27,6 @@
31
27
  134814201AA4EA6300B7C361 /* libRNPurchases.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNPurchases.a; sourceTree = BUILT_PRODUCTS_DIR; };
32
28
  3552B97B252CF5900098008A /* RNPurchases-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNPurchases-Bridging-Header.h"; sourceTree = "<group>"; };
33
29
  3552B97C252CF5900098008A /* PurchasesPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PurchasesPlugin.swift; sourceTree = "<group>"; };
34
- 35BFF4DB247DDAD3008B64DA /* PurchasesHybridCommon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PurchasesHybridCommon.framework; sourceTree = "<group>"; };
35
- 35D0736A20AD0F740012EB8C /* Purchases.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Purchases.framework; sourceTree = SOURCE_ROOT; };
36
- 4F7207282AF30E7E0017395F /* RNPaywallManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNPaywallManager.h; sourceTree = "<group>"; };
37
- 4F7207292AF30E7E0017395F /* RNPaywallManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNPaywallManager.m; sourceTree = "<group>"; };
38
- 4F7D88D32AF9666800855875 /* RNPaywalls.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNPaywalls.m; sourceTree = "<group>"; };
39
- 4F7D88D42AF9666800855875 /* RNPaywalls.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPaywalls.h; sourceTree = "<group>"; };
40
30
  B3E7B5881CC2AC0600A0062D /* RNPurchases.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPurchases.h; sourceTree = "<group>"; };
41
31
  B3E7B5891CC2AC0600A0062D /* RNPurchases.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNPurchases.m; sourceTree = "<group>"; };
42
32
  /* End PBXFileReference section */
@@ -46,8 +36,6 @@
46
36
  isa = PBXFrameworksBuildPhase;
47
37
  buildActionMask = 2147483647;
48
38
  files = (
49
- 35D0736B20AD0F740012EB8C /* Purchases.framework in Frameworks */,
50
- 35BFF4DC247DDAD3008B64DA /* PurchasesHybridCommon.framework in Frameworks */,
51
39
  );
52
40
  runOnlyForDeploymentPostprocessing = 0;
53
41
  };
@@ -73,14 +61,8 @@
73
61
  isa = PBXGroup;
74
62
  children = (
75
63
  3552B97C252CF5900098008A /* PurchasesPlugin.swift */,
76
- 35D0736A20AD0F740012EB8C /* Purchases.framework */,
77
- 35BFF4DB247DDAD3008B64DA /* PurchasesHybridCommon.framework */,
78
64
  B3E7B5881CC2AC0600A0062D /* RNPurchases.h */,
79
65
  B3E7B5891CC2AC0600A0062D /* RNPurchases.m */,
80
- 4F7207282AF30E7E0017395F /* RNPaywallManager.h */,
81
- 4F7207292AF30E7E0017395F /* RNPaywallManager.m */,
82
- 4F7D88D42AF9666800855875 /* RNPaywalls.h */,
83
- 4F7D88D32AF9666800855875 /* RNPaywalls.m */,
84
66
  134814211AA4EA7D00B7C361 /* Products */,
85
67
  35493AC8202D4BCD004DFA39 /* Frameworks */,
86
68
  3552B97B252CF5900098008A /* RNPurchases-Bridging-Header.h */,
@@ -146,10 +128,8 @@
146
128
  isa = PBXSourcesBuildPhase;
147
129
  buildActionMask = 2147483647;
148
130
  files = (
149
- 4F7D88D52AF9666800855875 /* RNPaywalls.m in Sources */,
150
131
  B3E7B58A1CC2AC0600A0062D /* RNPurchases.m in Sources */,
151
132
  3552B97D252CF5900098008A /* PurchasesPlugin.swift in Sources */,
152
- 4F72072A2AF30E7E0017395F /* RNPaywallManager.m in Sources */,
153
133
  );
154
134
  runOnlyForDeploymentPostprocessing = 0;
155
135
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-purchases",
3
3
  "title": "React Native Purchases",
4
- "version": "7.17.0",
4
+ "version": "7.18.0",
5
5
  "description": "React Native in-app purchases and subscriptions made easy. Supports iOS and Android. ",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -66,44 +66,39 @@
66
66
  "react-native": ">= 0.58.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@types/jest": "^26.0.0",
70
- "@types/react": "^16.9.19",
71
- "@types/react-native": "0.62.13",
72
- "jest": "^26.0.1",
69
+ "@types/jest": "^28.1.2",
70
+ "@types/react": "~18.2.0",
71
+ "@types/react-dom": "~18.2.0",
72
+ "jest": "^28.1.1",
73
73
  "jest-react-native": "^18.0.0",
74
74
  "pod-install": "^0.1.0",
75
75
  "prettier": "^2.0.5",
76
- "react": "16.11.0",
77
- "react-native": "^0.64.0",
76
+ "react": "18.2.0",
77
+ "react-native": "0.73.1",
78
78
  "ts-jest": "^24.1.0",
79
79
  "tslint": "^5.20.0",
80
80
  "tslint-config-prettier": "^1.18.0",
81
81
  "typedoc": "^0.23.21",
82
82
  "typescript": "^4.9.3"
83
83
  },
84
+ "resolutions": {
85
+ "@types/react": "18.2.0",
86
+ "@types/react-native": "0.73.1",
87
+ "@types/react-dom": "18.2.0"
88
+ },
84
89
  "jest": {
85
90
  "preset": "react-native",
86
91
  "modulePathIgnorePatterns": [
87
- "<rootDir>/examples/purchaseTesterTypescript/node_modules",
92
+ "<rootDir>/examples/purchaseTesterTypescript/",
93
+ "<rootDir>/react-native-purchases-ui/",
88
94
  "<rootDir>/dir/"
89
95
  ],
90
- "moduleFileExtensions": [
91
- "js"
92
- ],
93
- "transform": {
94
- "^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
95
- },
96
- "testRegex": "(/__tests__/.*|\\.(test|spec))\\.js$",
97
- "testPathIgnorePatterns": [
98
- "\\.snap$",
99
- "<rootDir>/node_modules/"
100
- ],
101
96
  "cacheDirectory": ".jest/cache",
102
97
  "setupFiles": [
103
98
  "./scripts/setupJest.js"
104
99
  ]
105
100
  },
106
101
  "dependencies": {
107
- "@revenuecat/purchases-typescript-internal": "9.0.0"
102
+ "@revenuecat/purchases-typescript-internal": "9.3.0"
108
103
  }
109
104
  }