react-native-purchases 10.15.0 → 10.16.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
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.16.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:19.
|
|
130
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common:19.17.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.16.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.16.0';
|
|
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.js
CHANGED
|
@@ -356,12 +356,16 @@ var Purchases = /** @class */ (function () {
|
|
|
356
356
|
*/
|
|
357
357
|
Purchases.getCurrentOfferingForPlacement = function (placementIdentifier) {
|
|
358
358
|
return __awaiter(this, void 0, void 0, function () {
|
|
359
|
+
var offering;
|
|
359
360
|
return __generator(this, function (_a) {
|
|
360
361
|
switch (_a.label) {
|
|
361
362
|
case 0: return [4 /*yield*/, throwIfNotConfigured()];
|
|
362
363
|
case 1:
|
|
363
364
|
_a.sent();
|
|
364
|
-
return [
|
|
365
|
+
return [4 /*yield*/, RNPurchases.getCurrentOfferingForPlacement(placementIdentifier)];
|
|
366
|
+
case 2:
|
|
367
|
+
offering = _a.sent();
|
|
368
|
+
return [2 /*return*/, offering !== null && offering !== void 0 ? offering : null];
|
|
365
369
|
}
|
|
366
370
|
});
|
|
367
371
|
});
|
|
@@ -1982,12 +1986,17 @@ var Purchases = /** @class */ (function () {
|
|
|
1982
1986
|
*/
|
|
1983
1987
|
Purchases.redeemWebPurchase = function (webPurchaseRedemption) {
|
|
1984
1988
|
return __awaiter(this, void 0, void 0, function () {
|
|
1989
|
+
var result;
|
|
1985
1990
|
return __generator(this, function (_a) {
|
|
1986
1991
|
switch (_a.label) {
|
|
1987
1992
|
case 0: return [4 /*yield*/, throwIfNotConfigured()];
|
|
1988
1993
|
case 1:
|
|
1989
1994
|
_a.sent();
|
|
1990
|
-
return [
|
|
1995
|
+
return [4 /*yield*/, RNPurchases.redeemWebPurchase(webPurchaseRedemption.redemptionLink)];
|
|
1996
|
+
case 2:
|
|
1997
|
+
result = _a.sent();
|
|
1998
|
+
(0, purchases_typescript_internal_1.normalizePurchasesError)(result === null || result === void 0 ? void 0 : result.error);
|
|
1999
|
+
return [2 /*return*/, result];
|
|
1991
2000
|
}
|
|
1992
2001
|
});
|
|
1993
2002
|
});
|
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.16.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",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
]
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@revenuecat/purchases-js-hybrid-mappings": "19.
|
|
128
|
-
"@revenuecat/purchases-typescript-internal": "19.
|
|
127
|
+
"@revenuecat/purchases-js-hybrid-mappings": "19.17.0",
|
|
128
|
+
"@revenuecat/purchases-typescript-internal": "19.17.0"
|
|
129
129
|
}
|
|
130
130
|
}
|