react-native-purchases 10.9.1 → 10.10.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.
- package/RNPurchases.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java +1 -1
- package/dist/browser/nativeModule.js +1 -1
- package/dist/utils/environment.js +6 -3
- package/ios/RNPurchases.m +1 -1
- package/package.json +3 -3
package/RNPurchases.podspec
CHANGED
package/android/build.gradle
CHANGED
|
@@ -35,7 +35,7 @@ android {
|
|
|
35
35
|
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
|
|
36
36
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
37
37
|
versionCode 1
|
|
38
|
-
versionName '10.
|
|
38
|
+
versionName '10.10.0'
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
buildTypes {
|
|
@@ -127,6 +127,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
|
|
|
127
127
|
dependencies {
|
|
128
128
|
//noinspection GradleDynamicVersion
|
|
129
129
|
api 'com.facebook.react:react-native:+'
|
|
130
|
-
implementation 'com.revenuecat.purchases:purchases-hybrid-common:
|
|
130
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common:19.0.0'
|
|
131
131
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
132
132
|
}
|
|
@@ -51,7 +51,7 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd
|
|
|
51
51
|
private static final String TRACKED_EVENT = "Purchases-TrackedEvent";
|
|
52
52
|
private static final String DEBUG_EVENT = "Purchases-DebugEvent";
|
|
53
53
|
public static final String PLATFORM_NAME = "react-native";
|
|
54
|
-
public static final String PLUGIN_VERSION = "10.
|
|
54
|
+
public static final String PLUGIN_VERSION = "10.10.0";
|
|
55
55
|
|
|
56
56
|
private final ReactApplicationContext reactContext;
|
|
57
57
|
|
|
@@ -43,7 +43,7 @@ var typeGuards_1 = require("./typeGuards");
|
|
|
43
43
|
var environment_1 = require("../utils/environment");
|
|
44
44
|
var utils_1 = require("./utils");
|
|
45
45
|
var purchaseSimulatedPackageHelper_1 = require("./simulatedstore/purchaseSimulatedPackageHelper");
|
|
46
|
-
var packageVersion = '10.
|
|
46
|
+
var packageVersion = '10.10.0';
|
|
47
47
|
/**
|
|
48
48
|
* Browser implementation of the native module. This will be used in the browser and Expo Go.
|
|
49
49
|
*/
|
|
@@ -11,15 +11,15 @@ var react_native_1 = require("react-native");
|
|
|
11
11
|
*/
|
|
12
12
|
function shouldUseBrowserMode() {
|
|
13
13
|
if (isExpoGo()) {
|
|
14
|
-
|
|
14
|
+
logBrowserModeDetection('Expo Go app detected. Using RevenueCat in Browser Mode.');
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
17
|
else if (isRorkSandbox()) {
|
|
18
|
-
|
|
18
|
+
logBrowserModeDetection('Rork app detected. Using RevenueCat in Preview API Mode.');
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
else if (isWebPlatform()) {
|
|
22
|
-
|
|
22
|
+
logBrowserModeDetection('Web platform detected. Using RevenueCat in Browser Mode.');
|
|
23
23
|
return true;
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
@@ -27,6 +27,9 @@ function shouldUseBrowserMode() {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
exports.shouldUseBrowserMode = shouldUseBrowserMode;
|
|
30
|
+
function logBrowserModeDetection(message) {
|
|
31
|
+
console.log("[RevenueCat] ".concat(message));
|
|
32
|
+
}
|
|
30
33
|
/**
|
|
31
34
|
* Detects if the app is running in Expo Go
|
|
32
35
|
*/
|
package/ios/RNPurchases.m
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-purchases",
|
|
3
3
|
"title": "React Native Purchases",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.10.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
|
"module": "dist/index.js",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@revenuecat/purchases-js-hybrid-mappings": "
|
|
122
|
-
"@revenuecat/purchases-typescript-internal": "
|
|
121
|
+
"@revenuecat/purchases-js-hybrid-mappings": "19.0.0",
|
|
122
|
+
"@revenuecat/purchases-typescript-internal": "19.0.0"
|
|
123
123
|
}
|
|
124
124
|
}
|