react-native-purchases 9.4.3 → 9.5.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
|
@@ -47,7 +47,7 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd
|
|
|
47
47
|
private static final String CUSTOMER_INFO_UPDATED = "Purchases-CustomerInfoUpdated";
|
|
48
48
|
private static final String LOG_HANDLER_EVENT = "Purchases-LogHandlerEvent";
|
|
49
49
|
public static final String PLATFORM_NAME = "react-native";
|
|
50
|
-
public static final String PLUGIN_VERSION = "9.
|
|
50
|
+
public static final String PLUGIN_VERSION = "9.5.0";
|
|
51
51
|
|
|
52
52
|
private final ReactApplicationContext reactContext;
|
|
53
53
|
|
|
@@ -15,7 +15,7 @@ export declare const browserNativeModuleRNPurchases: {
|
|
|
15
15
|
getStorefront: () => Promise<void>;
|
|
16
16
|
setDebugLogsEnabled: (_enabled: boolean) => Promise<void>;
|
|
17
17
|
setLogLevel: (level: string) => Promise<void>;
|
|
18
|
-
setLogHandler: (
|
|
18
|
+
setLogHandler: (handler: (message: string) => void) => Promise<void>;
|
|
19
19
|
getCustomerInfo: () => Promise<import("@revenuecat/purchases-typescript-internal").CustomerInfo>;
|
|
20
20
|
logIn: (appUserID: string) => Promise<{
|
|
21
21
|
customerInfo: import("@revenuecat/purchases-typescript-internal").CustomerInfo;
|
|
@@ -159,9 +159,9 @@ exports.browserNativeModuleRNPurchases = {
|
|
|
159
159
|
return [2 /*return*/];
|
|
160
160
|
});
|
|
161
161
|
}); },
|
|
162
|
-
setLogHandler: function (
|
|
162
|
+
setLogHandler: function (handler) { return __awaiter(void 0, void 0, void 0, function () {
|
|
163
163
|
return __generator(this, function (_a) {
|
|
164
|
-
|
|
164
|
+
purchases_js_hybrid_mappings_1.PurchasesCommon.setLogHandler(handler);
|
|
165
165
|
return [2 /*return*/];
|
|
166
166
|
});
|
|
167
167
|
}); },
|
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": "9.
|
|
4
|
+
"version": "9.5.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",
|