react-native-purchases 8.0.0 → 8.1.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.
@@ -25,6 +25,6 @@ Pod::Spec.new do |spec|
25
25
  ]
26
26
 
27
27
  spec.dependency "React-Core"
28
- spec.dependency "PurchasesHybridCommon", '13.0.0'
28
+ spec.dependency "PurchasesHybridCommon", '13.1.0'
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.0.0'
32
+ versionName '8.1.0'
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.0.0'
124
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:13.1.0'
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.0.0";
50
+ public static final String PLUGIN_VERSION = "8.1.0";
51
51
 
52
52
  private final ReactApplicationContext reactContext;
53
53
 
package/dist/purchases.js CHANGED
@@ -100,13 +100,18 @@ var Purchases = /** @class */ (function () {
100
100
  if (Purchases.isPurchasesAreCompletedByMyApp(purchasesAreCompletedBy)) {
101
101
  purchasesCompletedByToUse = purchases_typescript_internal_1.PURCHASES_ARE_COMPLETED_BY_TYPE.MY_APP;
102
102
  storeKitVersionToUse = purchasesAreCompletedBy.storeKitVersion;
103
- if (storeKitVersionToUse !== storeKitVersion) {
103
+ if (storeKitVersion !== purchases_typescript_internal_1.STOREKIT_VERSION.DEFAULT &&
104
+ storeKitVersionToUse !== storeKitVersion) {
104
105
  // Typically, console messages aren't used in TS libraries, but in this case it's worth calling out the difference in
105
106
  // StoreKit versions, and since the difference isn't possible farther down the call chain, we should go ahead
106
107
  // and log it here.
107
108
  // tslint:disable-next-line:no-console
108
109
  console.warn("Warning: The storeKitVersion in purchasesAreCompletedBy does not match the function's storeKitVersion parameter. We will use the value found in purchasesAreCompletedBy.");
109
110
  }
111
+ if (storeKitVersionToUse === purchases_typescript_internal_1.STOREKIT_VERSION.DEFAULT) {
112
+ // tslint:disable-next-line:no-console
113
+ console.warn("Warning: You should provide the specific StoreKit version you're using in your implementation when configuring PURCHASES_ARE_COMPLETED_BY_TYPE.MY_APP, and not rely on the DEFAULT.");
114
+ }
110
115
  }
111
116
  RNPurchases.setupPurchases(apiKey, appUserID, purchasesCompletedByToUse, userDefaultsSuiteName, storeKitVersionToUse, useAmazon, shouldShowInAppMessagesAutomatically, entitlementVerificationMode, pendingTransactionsForPrepaidPlansEnabled);
112
117
  };
package/ios/RNPurchases.m CHANGED
@@ -507,7 +507,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
507
507
  }
508
508
 
509
509
  - (NSString *)platformFlavorVersion {
510
- return @"8.0.0";
510
+ return @"8.1.0";
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.0.0",
4
+ "version": "8.1.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
  "types": "dist/index.d.ts",
@@ -100,6 +100,6 @@
100
100
  ]
101
101
  },
102
102
  "dependencies": {
103
- "@revenuecat/purchases-typescript-internal": "13.0.0"
103
+ "@revenuecat/purchases-typescript-internal": "13.1.0"
104
104
  }
105
105
  }