react-native-purchases 7.28.0 → 7.28.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.
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '7.28.0'
32
+ versionName '7.28.1'
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 = "7.28.0";
50
+ public static final String PLUGIN_VERSION = "7.28.1";
51
51
 
52
52
  private final ReactApplicationContext reactContext;
53
53
 
@@ -313,8 +313,9 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd
313
313
  }
314
314
 
315
315
  @ReactMethod
316
- public void setProxyURLString(String proxyURLString) {
316
+ public void setProxyURLString(String proxyURLString, Promise promise) {
317
317
  CommonKt.setProxyURLString(proxyURLString);
318
+ promise.resolve(null); // Resolve the promise with no value
318
319
  }
319
320
 
320
321
  @ReactMethod
@@ -454,8 +454,7 @@ export default class Purchases {
454
454
  /**
455
455
  * Set this property to your proxy URL before configuring Purchases *only* if you've received a proxy key value
456
456
  * from your RevenueCat contact.
457
- * @returns {Promise<void>} The promise will be rejected if configure has not been called yet or if there's an error
458
- * setting the proxy url.
457
+ * @returns {Promise<void>} The promise to be returned after setting the proxy has been completed.
459
458
  */
460
459
  static setProxyURL(url: string): Promise<void>;
461
460
  /**
package/dist/purchases.js CHANGED
@@ -905,19 +905,12 @@ var Purchases = /** @class */ (function () {
905
905
  /**
906
906
  * Set this property to your proxy URL before configuring Purchases *only* if you've received a proxy key value
907
907
  * from your RevenueCat contact.
908
- * @returns {Promise<void>} The promise will be rejected if configure has not been called yet or if there's an error
909
- * setting the proxy url.
908
+ * @returns {Promise<void>} The promise to be returned after setting the proxy has been completed.
910
909
  */
911
910
  Purchases.setProxyURL = function (url) {
912
911
  return __awaiter(this, void 0, void 0, function () {
913
912
  return __generator(this, function (_a) {
914
- switch (_a.label) {
915
- case 0: return [4 /*yield*/, Purchases.throwIfNotConfigured()];
916
- case 1:
917
- _a.sent();
918
- RNPurchases.setProxyURLString(url);
919
- return [2 /*return*/];
920
- }
913
+ return [2 /*return*/, RNPurchases.setProxyURLString(url)];
921
914
  });
922
915
  });
923
916
  };
package/ios/RNPurchases.m CHANGED
@@ -260,8 +260,11 @@ static void logUnavailablePresentCodeRedemptionSheet() {
260
260
 
261
261
  #pragma mark - Subscriber Attributes
262
262
 
263
- RCT_EXPORT_METHOD(setProxyURLString:(nullable NSString *)proxyURLString) {
263
+ RCT_EXPORT_METHOD(setProxyURLString:(nullable NSString *)proxyURLString
264
+ resolver:(RCTPromiseResolveBlock)resolve
265
+ rejecter:(RCTPromiseRejectBlock)reject) {
264
266
  [RCCommonFunctionality setProxyURLString:proxyURLString];
267
+ resolve(nil); // Resolve the promise with no value
265
268
  }
266
269
 
267
270
  RCT_EXPORT_METHOD(setAttributes:(NSDictionary *)attributes) {
@@ -498,7 +501,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
498
501
  }
499
502
 
500
503
  - (NSString *)platformFlavorVersion {
501
- return @"7.28.0";
504
+ return @"7.28.1";
502
505
  }
503
506
 
504
507
  @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": "7.28.0",
4
+ "version": "7.28.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
  "types": "dist/index.d.ts",