react-native-purchases 10.16.0 → 10.16.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/android/build.gradle
CHANGED
|
@@ -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.16.
|
|
54
|
+
public static final String PLUGIN_VERSION = "10.16.1";
|
|
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.16.
|
|
46
|
+
var packageVersion = '10.16.1';
|
|
47
47
|
/**
|
|
48
48
|
* Browser implementation of the native module. This will be used in the browser and Expo Go.
|
|
49
49
|
*/
|
package/dist/purchases.d.ts
CHANGED
|
@@ -308,7 +308,7 @@ export default class Purchases {
|
|
|
308
308
|
* @param {String?} appUserID An optional unique id for identifying the user. Needs to be a string.
|
|
309
309
|
* @param {PurchasesAreCompletedBy} [purchasesAreCompletedBy=PURCHASES_ARE_COMPLETED_BY_TYPE.REVENUECAT] Set this to an instance of PurchasesAreCompletedByMyApp if you have your own IAP implementation and want to use only RevenueCat's backend. Default is PURCHASES_ARE_COMPLETED_BY_TYPE.REVENUECAT.
|
|
310
310
|
* @param {STOREKIT_VERSION} [storeKitVersion=DEFAULT] iOS-only. Defaults to STOREKIT_2. StoreKit 2 is only available on iOS 16+. StoreKit 1 will be used for previous iOS versions regardless of this setting.
|
|
311
|
-
* @param {ENTITLEMENT_VERIFICATION_MODE} [entitlementVerificationMode
|
|
311
|
+
* @param {ENTITLEMENT_VERIFICATION_MODE} [entitlementVerificationMode] Sets the entitlement verifciation mode to use. If not set, the native SDK's default is used (ENTITLEMENT_VERIFICATION_MODE.INFORMATIONAL). For more details, check https://rev.cat/trusted-entitlements
|
|
312
312
|
* @param {boolean} [useAmazon=false] An optional boolean. Android-only. Set this to true to enable Amazon on compatible devices.
|
|
313
313
|
* @param {String?} userDefaultsSuiteName An optional string. iOS-only, will be ignored for Android.
|
|
314
314
|
* 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
|
@@ -169,7 +169,7 @@ var Purchases = /** @class */ (function () {
|
|
|
169
169
|
* @param {String?} appUserID An optional unique id for identifying the user. Needs to be a string.
|
|
170
170
|
* @param {PurchasesAreCompletedBy} [purchasesAreCompletedBy=PURCHASES_ARE_COMPLETED_BY_TYPE.REVENUECAT] Set this to an instance of PurchasesAreCompletedByMyApp if you have your own IAP implementation and want to use only RevenueCat's backend. Default is PURCHASES_ARE_COMPLETED_BY_TYPE.REVENUECAT.
|
|
171
171
|
* @param {STOREKIT_VERSION} [storeKitVersion=DEFAULT] iOS-only. Defaults to STOREKIT_2. StoreKit 2 is only available on iOS 16+. StoreKit 1 will be used for previous iOS versions regardless of this setting.
|
|
172
|
-
* @param {ENTITLEMENT_VERIFICATION_MODE} [entitlementVerificationMode
|
|
172
|
+
* @param {ENTITLEMENT_VERIFICATION_MODE} [entitlementVerificationMode] Sets the entitlement verifciation mode to use. If not set, the native SDK's default is used (ENTITLEMENT_VERIFICATION_MODE.INFORMATIONAL). For more details, check https://rev.cat/trusted-entitlements
|
|
173
173
|
* @param {boolean} [useAmazon=false] An optional boolean. Android-only. Set this to true to enable Amazon on compatible devices.
|
|
174
174
|
* @param {String?} userDefaultsSuiteName An optional string. iOS-only, will be ignored for Android.
|
|
175
175
|
* Set this if you would like the RevenueCat SDK to store its preferences in a different NSUserDefaults suite, otherwise it will use standardUserDefaults.
|
|
@@ -184,8 +184,8 @@ var Purchases = /** @class */ (function () {
|
|
|
184
184
|
* @warning If you use purchasesAreCompletedBy=PurchasesAreCompletedByMyApp, you must also provide a value for storeKitVersion.
|
|
185
185
|
*/
|
|
186
186
|
Purchases.configure = function (configuration) {
|
|
187
|
-
var apiKey = configuration.apiKey, _a = configuration.appUserID, appUserID = _a === void 0 ? null : _a, _b = configuration.purchasesAreCompletedBy, purchasesAreCompletedBy = _b === void 0 ? purchases_typescript_internal_1.PURCHASES_ARE_COMPLETED_BY_TYPE.REVENUECAT : _b, userDefaultsSuiteName = configuration.userDefaultsSuiteName, _c = configuration.storeKitVersion, storeKitVersion = _c === void 0 ? purchases_typescript_internal_1.STOREKIT_VERSION.DEFAULT : _c, _d = configuration.useAmazon, useAmazon = _d === void 0 ? false : _d, _e = configuration.shouldShowInAppMessagesAutomatically, shouldShowInAppMessagesAutomatically = _e === void 0 ? true : _e,
|
|
188
|
-
var
|
|
187
|
+
var apiKey = configuration.apiKey, _a = configuration.appUserID, appUserID = _a === void 0 ? null : _a, _b = configuration.purchasesAreCompletedBy, purchasesAreCompletedBy = _b === void 0 ? purchases_typescript_internal_1.PURCHASES_ARE_COMPLETED_BY_TYPE.REVENUECAT : _b, userDefaultsSuiteName = configuration.userDefaultsSuiteName, _c = configuration.storeKitVersion, storeKitVersion = _c === void 0 ? purchases_typescript_internal_1.STOREKIT_VERSION.DEFAULT : _c, _d = configuration.useAmazon, useAmazon = _d === void 0 ? false : _d, _e = configuration.shouldShowInAppMessagesAutomatically, shouldShowInAppMessagesAutomatically = _e === void 0 ? true : _e, entitlementVerificationMode = configuration.entitlementVerificationMode, _f = configuration.pendingTransactionsForPrepaidPlansEnabled, pendingTransactionsForPrepaidPlansEnabled = _f === void 0 ? false : _f, _g = configuration.diagnosticsEnabled, diagnosticsEnabled = _g === void 0 ? false : _g, _h = configuration.automaticDeviceIdentifierCollectionEnabled, automaticDeviceIdentifierCollectionEnabled = _h === void 0 ? true : _h, preferredUILocaleOverride = configuration.preferredUILocaleOverride, _j = configuration.useExternalPurchaseCustomLinks, useExternalPurchaseCustomLinks = _j === void 0 ? false : _j, _k = configuration.enableExternalPurchasesInSimulator, enableExternalPurchasesInSimulator = _k === void 0 ? true : _k;
|
|
188
|
+
var _l = configuration, store = _l.store, galaxyBillingMode = _l.galaxyBillingMode;
|
|
189
189
|
throwIfNativeModuleNotAvailable();
|
|
190
190
|
if (!customLogHandler) {
|
|
191
191
|
this.setLogHandler(function (logLevel, message) {
|
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.16.
|
|
4
|
+
"version": "10.16.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
|
"module": "dist/index.js",
|