react-native-purchases 10.14.0 → 10.15.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/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.
|
|
54
|
+
public static final String PLUGIN_VERSION = "10.15.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.15.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.d.ts
CHANGED
|
@@ -72,6 +72,15 @@ export declare const AdRevenuePrecision: {
|
|
|
72
72
|
readonly unknown: "unknown";
|
|
73
73
|
};
|
|
74
74
|
export type AdRevenuePrecision = string;
|
|
75
|
+
/**
|
|
76
|
+
* Identifies the integration that emitted an ad event. Reserved for the
|
|
77
|
+
* official RevenueCat ad-network adapters (for example
|
|
78
|
+
* `react-native-purchases-admob`); leave it unset when tracking manually.
|
|
79
|
+
*/
|
|
80
|
+
export declare const AdCaptureMethod: {
|
|
81
|
+
readonly reactNativeAdMobAdapter: "react_native_admob_adapter";
|
|
82
|
+
};
|
|
83
|
+
export type AdCaptureMethod = string;
|
|
75
84
|
export interface AdDisplayedData {
|
|
76
85
|
mediatorName: AdMediatorName;
|
|
77
86
|
adFormat: AdFormat;
|
package/dist/purchases.js
CHANGED
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PurchasesAdTracker = exports.AdRevenuePrecision = exports.AdFormat = exports.AdMediatorName = exports.WebPurchaseRedemptionResultType = exports.STOREKIT_VERSION = exports.LOG_LEVEL = exports.REFUND_REQUEST_STATUS = exports.BILLING_FEATURE = exports.PURCHASES_ARE_COMPLETED_BY_TYPE = exports.PURCHASE_TYPE = void 0;
|
|
39
|
+
exports.PurchasesAdTracker = exports.AdCaptureMethod = exports.AdRevenuePrecision = exports.AdFormat = exports.AdMediatorName = exports.WebPurchaseRedemptionResultType = exports.STOREKIT_VERSION = exports.LOG_LEVEL = exports.REFUND_REQUEST_STATUS = exports.BILLING_FEATURE = exports.PURCHASES_ARE_COMPLETED_BY_TYPE = exports.PURCHASE_TYPE = void 0;
|
|
40
40
|
var react_native_1 = require("react-native");
|
|
41
41
|
var purchases_typescript_internal_1 = require("@revenuecat/purchases-typescript-internal");
|
|
42
42
|
var normalizingRejections_1 = require("./normalizingRejections");
|
|
@@ -110,6 +110,14 @@ exports.AdRevenuePrecision = {
|
|
|
110
110
|
estimated: "estimated",
|
|
111
111
|
unknown: "unknown",
|
|
112
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Identifies the integration that emitted an ad event. Reserved for the
|
|
115
|
+
* official RevenueCat ad-network adapters (for example
|
|
116
|
+
* `react-native-purchases-admob`); leave it unset when tracking manually.
|
|
117
|
+
*/
|
|
118
|
+
exports.AdCaptureMethod = {
|
|
119
|
+
reactNativeAdMobAdapter: "react_native_admob_adapter",
|
|
120
|
+
};
|
|
113
121
|
var debugEventListeners = [];
|
|
114
122
|
eventEmitter === null || eventEmitter === void 0 ? void 0 : eventEmitter.addListener("Purchases-CustomerInfoUpdated", function (event) {
|
|
115
123
|
var customerInfo = event;
|
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.15.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",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"!**/*.iml",
|
|
29
29
|
"!**/.DS_Store",
|
|
30
30
|
"!**/.gitignore",
|
|
31
|
+
"!react-native-purchases-admob",
|
|
31
32
|
"!react-native-purchases-store-galaxy",
|
|
32
33
|
"!react-native-purchases-ui",
|
|
33
34
|
"!scripts/docs/index.html",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
},
|
|
48
49
|
"workspaces": [
|
|
49
50
|
"examples/purchaseTesterTypescript",
|
|
51
|
+
"react-native-purchases-admob",
|
|
50
52
|
"react-native-purchases-store-galaxy",
|
|
51
53
|
"react-native-purchases-ui",
|
|
52
54
|
"e2e-tests/MaestroTestApp"
|
|
@@ -108,6 +110,7 @@
|
|
|
108
110
|
"preset": "@react-native/jest-preset",
|
|
109
111
|
"modulePathIgnorePatterns": [
|
|
110
112
|
"<rootDir>/examples/purchaseTesterTypescript/",
|
|
113
|
+
"<rootDir>/react-native-purchases-admob/",
|
|
111
114
|
"<rootDir>/react-native-purchases-store-galaxy/",
|
|
112
115
|
"<rootDir>/react-native-purchases-ui/",
|
|
113
116
|
"<rootDir>/dir/"
|