react-native-purchases 6.0.0-alpha.1 → 6.0.0-rc.1
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/gradle.properties +1 -1
- package/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesConverters.kt +2 -0
- package/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java +1 -1
- package/dist/offerings.d.ts +4 -0
- package/ios/RNPurchases.m +1 -1
- package/package.json +1 -1
- package/scripts/docs/index.html +1 -1
- package/scripts/setupJest.js +10 -0
package/RNPurchases.podspec
CHANGED
package/android/build.gradle
CHANGED
|
@@ -29,7 +29,7 @@ android {
|
|
|
29
29
|
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
|
|
30
30
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
31
31
|
versionCode 1
|
|
32
|
-
versionName '6.0.0-
|
|
32
|
+
versionName '6.0.0-rc.1'
|
|
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:5.0.0-
|
|
124
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common:5.0.0-rc.1'
|
|
125
125
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
126
126
|
}
|
|
@@ -62,6 +62,7 @@ internal object RNPurchasesConverters {
|
|
|
62
62
|
null -> writableArray.pushNull()
|
|
63
63
|
is Boolean -> writableArray.pushBoolean(item)
|
|
64
64
|
is Int -> writableArray.pushInt(item)
|
|
65
|
+
is Long -> writableArray.pushDouble(item.toDouble())
|
|
65
66
|
is Double -> writableArray.pushDouble(item)
|
|
66
67
|
is String -> writableArray.pushString(item)
|
|
67
68
|
is Map<*, *> -> writableArray.pushMap(convertMapToWriteableMap(item as Map<String, *>))
|
|
@@ -81,6 +82,7 @@ internal object RNPurchasesConverters {
|
|
|
81
82
|
null -> writableMap.putNull(key)
|
|
82
83
|
is Boolean -> writableMap.putBoolean(key, value)
|
|
83
84
|
is Int -> writableMap.putInt(key, value)
|
|
85
|
+
is Long -> writableMap.putDouble(key, value.toDouble())
|
|
84
86
|
is Double -> writableMap.putDouble(key, value)
|
|
85
87
|
is String -> writableMap.putString(key, value)
|
|
86
88
|
is Map<*, *> -> writableMap.putMap(key, convertMapToWriteableMap(value as Map<String, *>))
|
|
@@ -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 = "
|
|
48
|
+
public static final String PLUGIN_VERSION = "5.17.0-SNAPSHOT";
|
|
49
49
|
|
|
50
50
|
private final ReactApplicationContext reactContext;
|
|
51
51
|
|
package/dist/offerings.d.ts
CHANGED
|
@@ -221,6 +221,10 @@ export interface PurchasesOffering {
|
|
|
221
221
|
* Offering description defined in RevenueCat dashboard.
|
|
222
222
|
*/
|
|
223
223
|
readonly serverDescription: string;
|
|
224
|
+
/**
|
|
225
|
+
* Offering metadata defined in RevenueCat dashboard.
|
|
226
|
+
*/
|
|
227
|
+
readonly metadata: Map<string, any>;
|
|
224
228
|
/**
|
|
225
229
|
* Array of `Package` objects available for purchase.
|
|
226
230
|
*/
|
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": "6.0.0-
|
|
4
|
+
"version": "6.0.0-rc.1",
|
|
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",
|
package/scripts/docs/index.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!DOCTYPE html>
|
|
3
3
|
<html>
|
|
4
4
|
<head>
|
|
5
|
-
<meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/react-native-purchases-docs/6.0.0-
|
|
5
|
+
<meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/react-native-purchases-docs/6.0.0-rc.1/" />
|
|
6
6
|
</head>
|
|
7
7
|
<body>
|
|
8
8
|
</body>
|
package/scripts/setupJest.js
CHANGED
|
@@ -330,6 +330,16 @@ global.offeringsStub = {
|
|
|
330
330
|
identifier: 'Custom'
|
|
331
331
|
}
|
|
332
332
|
],
|
|
333
|
+
metadata: {
|
|
334
|
+
"int": 5,
|
|
335
|
+
"double": 5.5,
|
|
336
|
+
"boolean": true,
|
|
337
|
+
"string": "five",
|
|
338
|
+
"array": ["five"],
|
|
339
|
+
"dictionary": {
|
|
340
|
+
"string": "five"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
333
343
|
serverDescription: 'Default Offering',
|
|
334
344
|
identifier: 'default'
|
|
335
345
|
},
|