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.
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '9.4.3'
32
+ versionName '9.5.0'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -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.4.3";
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: (_handler: (message: string) => void) => Promise<void>;
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 (_handler) { return __awaiter(void 0, void 0, void 0, function () {
162
+ setLogHandler: function (handler) { return __awaiter(void 0, void 0, void 0, function () {
163
163
  return __generator(this, function (_a) {
164
- (0, utils_1.methodNotSupportedOnWeb)('setLogHandler');
164
+ purchases_js_hybrid_mappings_1.PurchasesCommon.setLogHandler(handler);
165
165
  return [2 /*return*/];
166
166
  });
167
167
  }); },
package/ios/RNPurchases.m CHANGED
@@ -665,7 +665,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
665
665
  }
666
666
 
667
667
  - (NSString *)platformFlavorVersion {
668
- return @"9.4.3";
668
+ return @"9.5.0";
669
669
  }
670
670
 
671
671
  @end
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.3",
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",