react-native-purchases 8.1.0 → 8.2.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.
@@ -25,6 +25,6 @@ Pod::Spec.new do |spec|
25
25
  ]
26
26
 
27
27
  spec.dependency "React-Core"
28
- spec.dependency "PurchasesHybridCommon", '13.1.0'
28
+ spec.dependency "PurchasesHybridCommon", '13.2.1'
29
29
  spec.swift_version = '5.7'
30
30
  end
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '8.1.0'
32
+ versionName '8.2.1'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -121,6 +121,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
121
121
  dependencies {
122
122
  //noinspection GradleDynamicVersion
123
123
  api 'com.facebook.react:react-native:+'
124
- implementation 'com.revenuecat.purchases:purchases-hybrid-common:13.1.0'
124
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:13.2.1'
125
125
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
126
126
  }
@@ -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 = "8.1.0";
50
+ public static final String PLUGIN_VERSION = "8.2.1";
51
51
 
52
52
  private final ReactApplicationContext reactContext;
53
53
 
@@ -113,9 +113,11 @@ export default class Purchases {
113
113
  */
114
114
  static configure({ apiKey, appUserID, purchasesAreCompletedBy, userDefaultsSuiteName, storeKitVersion, useAmazon, shouldShowInAppMessagesAutomatically, entitlementVerificationMode, pendingTransactionsForPrepaidPlansEnabled, }: PurchasesConfiguration): void;
115
115
  /**
116
- * @deprecated, configure behavior through the RevenueCat dashboard instead.
116
+ * @deprecated, configure behavior through the RevenueCat dashboard (app.revenuecat.com) instead.
117
117
  * If an user tries to purchase a product that is active on the current app store account,
118
118
  * we will treat it as a restore and alias the new ID with the previous id.
119
+ * If you have configured the Legacy restore behavior in the RevenueCat dashboard
120
+ * and are currently setting this to true, keep this setting active.
119
121
  * @param {boolean} allowSharing Set this to true if you are passing in an appUserID but it is anonymous,
120
122
  * this is true by default if you didn't pass an appUserID
121
123
  * @returns {Promise<void>} The promise will be rejected if configure has not been called yet.
package/dist/purchases.js CHANGED
@@ -116,9 +116,11 @@ var Purchases = /** @class */ (function () {
116
116
  RNPurchases.setupPurchases(apiKey, appUserID, purchasesCompletedByToUse, userDefaultsSuiteName, storeKitVersionToUse, useAmazon, shouldShowInAppMessagesAutomatically, entitlementVerificationMode, pendingTransactionsForPrepaidPlansEnabled);
117
117
  };
118
118
  /**
119
- * @deprecated, configure behavior through the RevenueCat dashboard instead.
119
+ * @deprecated, configure behavior through the RevenueCat dashboard (app.revenuecat.com) instead.
120
120
  * If an user tries to purchase a product that is active on the current app store account,
121
121
  * we will treat it as a restore and alias the new ID with the previous id.
122
+ * If you have configured the Legacy restore behavior in the RevenueCat dashboard
123
+ * and are currently setting this to true, keep this setting active.
122
124
  * @param {boolean} allowSharing Set this to true if you are passing in an appUserID but it is anonymous,
123
125
  * this is true by default if you didn't pass an appUserID
124
126
  * @returns {Promise<void>} The promise will be rejected if configure has not been called yet.
package/ios/RNPurchases.m CHANGED
@@ -507,7 +507,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
507
507
  }
508
508
 
509
509
  - (NSString *)platformFlavorVersion {
510
- return @"8.1.0";
510
+ return @"8.2.1";
511
511
  }
512
512
 
513
513
  @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": "8.1.0",
4
+ "version": "8.2.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",
@@ -100,6 +100,6 @@
100
100
  ]
101
101
  },
102
102
  "dependencies": {
103
- "@revenuecat/purchases-typescript-internal": "13.1.0"
103
+ "@revenuecat/purchases-typescript-internal": "13.2.1"
104
104
  }
105
105
  }