react-native-purchases 5.11.0 → 5.12.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/dist/offerings.d.ts +7 -1
- package/dist/offerings.js +6 -0
- package/dist/purchases.d.ts +8 -1
- package/dist/purchases.js +2 -1
- package/ios/RNPurchases.m +1 -1
- package/package.json +1 -1
- package/scripts/docs/index.html +1 -1
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 '5.
|
|
32
|
+
versionName '5.12.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:4.13.
|
|
124
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common:4.13.5'
|
|
125
125
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
126
126
|
}
|
package/dist/offerings.d.ts
CHANGED
|
@@ -291,5 +291,11 @@ export declare enum PRORATION_MODE {
|
|
|
291
291
|
* Replacement takes effect when the old plan expires, and the new price will
|
|
292
292
|
* be charged at the same time.
|
|
293
293
|
*/
|
|
294
|
-
DEFERRED = 4
|
|
294
|
+
DEFERRED = 4,
|
|
295
|
+
/**
|
|
296
|
+
* Replacement takes effect immediately, and the user is charged full price
|
|
297
|
+
* of new plan and is given a full billing cycle of subscription,
|
|
298
|
+
* plus remaining prorated time from the old plan.
|
|
299
|
+
*/
|
|
300
|
+
IMMEDIATE_AND_CHARGE_FULL_PRICE = 5
|
|
295
301
|
}
|
package/dist/offerings.js
CHANGED
|
@@ -83,4 +83,10 @@ var PRORATION_MODE;
|
|
|
83
83
|
* be charged at the same time.
|
|
84
84
|
*/
|
|
85
85
|
PRORATION_MODE[PRORATION_MODE["DEFERRED"] = 4] = "DEFERRED";
|
|
86
|
+
/**
|
|
87
|
+
* Replacement takes effect immediately, and the user is charged full price
|
|
88
|
+
* of new plan and is given a full billing cycle of subscription,
|
|
89
|
+
* plus remaining prorated time from the old plan.
|
|
90
|
+
*/
|
|
91
|
+
PRORATION_MODE[PRORATION_MODE["IMMEDIATE_AND_CHARGE_FULL_PRICE"] = 5] = "IMMEDIATE_AND_CHARGE_FULL_PRICE";
|
|
86
92
|
})(PRORATION_MODE = exports.PRORATION_MODE || (exports.PRORATION_MODE = {}));
|
package/dist/purchases.d.ts
CHANGED
|
@@ -112,6 +112,12 @@ export interface PurchasesConfiguration {
|
|
|
112
112
|
* iOS-only, will be ignored for Android.
|
|
113
113
|
* Set this to TRUE to enable StoreKit2.
|
|
114
114
|
* Default is FALSE.
|
|
115
|
+
*
|
|
116
|
+
* @deprecated RevenueCat currently uses StoreKit 1 for purchases, as its stability in production scenarios has
|
|
117
|
+
* proven to be more performant than StoreKit 2.
|
|
118
|
+
* We're collecting more data on the best approach, but StoreKit 1 vs StoreKit 2 is an implementation detail
|
|
119
|
+
* that you shouldn't need to care about.
|
|
120
|
+
* We recommend not using this parameter, letting RevenueCat decide for you which StoreKit implementation to use.
|
|
115
121
|
*/
|
|
116
122
|
usesStoreKit2IfAvailable?: boolean;
|
|
117
123
|
/**
|
|
@@ -183,7 +189,8 @@ export default class Purchases {
|
|
|
183
189
|
* @param {String} apiKey RevenueCat API Key. Needs to be a String
|
|
184
190
|
* @param {String?} appUserID An optional unique id for identifying the user. Needs to be a string.
|
|
185
191
|
* @param {boolean} [observerMode=false] An optional boolean. Set this to TRUE if you have your own IAP implementation and want to use only RevenueCat's backend. Default is FALSE.
|
|
186
|
-
* @param {boolean} [usesStoreKit2IfAvailable=false] An optional boolean. iOS-only.
|
|
192
|
+
* @param {boolean} [usesStoreKit2IfAvailable=false] DEPRECATED. An optional boolean. iOS-only. Defaults to FALSE. Setting this to TRUE will enable StoreKit2 on compatible devices.
|
|
193
|
+
* We recommend not using this parameter, letting RevenueCat decide for you which StoreKit implementation to use.
|
|
187
194
|
* @param {boolean} [useAmazon=false] An optional boolean. Android-only. Set this to TRUE to enable Amazon on compatible devices.
|
|
188
195
|
* @param {String?} userDefaultsSuiteName An optional string. iOS-only, will be ignored for Android.
|
|
189
196
|
* Set this if you would like the RevenueCat SDK to store its preferences in a different NSUserDefaults suite, otherwise it will use standardUserDefaults.
|
package/dist/purchases.js
CHANGED
|
@@ -130,7 +130,8 @@ var Purchases = /** @class */ (function () {
|
|
|
130
130
|
* @param {String} apiKey RevenueCat API Key. Needs to be a String
|
|
131
131
|
* @param {String?} appUserID An optional unique id for identifying the user. Needs to be a string.
|
|
132
132
|
* @param {boolean} [observerMode=false] An optional boolean. Set this to TRUE if you have your own IAP implementation and want to use only RevenueCat's backend. Default is FALSE.
|
|
133
|
-
* @param {boolean} [usesStoreKit2IfAvailable=false] An optional boolean. iOS-only.
|
|
133
|
+
* @param {boolean} [usesStoreKit2IfAvailable=false] DEPRECATED. An optional boolean. iOS-only. Defaults to FALSE. Setting this to TRUE will enable StoreKit2 on compatible devices.
|
|
134
|
+
* We recommend not using this parameter, letting RevenueCat decide for you which StoreKit implementation to use.
|
|
134
135
|
* @param {boolean} [useAmazon=false] An optional boolean. Android-only. Set this to TRUE to enable Amazon on compatible devices.
|
|
135
136
|
* @param {String?} userDefaultsSuiteName An optional string. iOS-only, will be ignored for Android.
|
|
136
137
|
* Set this if you would like the RevenueCat SDK to store its preferences in a different NSUserDefaults suite, otherwise it will use standardUserDefaults.
|
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": "5.
|
|
4
|
+
"version": "5.12.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",
|
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/5.
|
|
5
|
+
<meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/react-native-purchases-docs/5.12.0/" />
|
|
6
6
|
</head>
|
|
7
7
|
<body>
|
|
8
8
|
</body>
|