react-native-purchases 10.9.0 → 10.10.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", '18.33.1'
28
+ spec.dependency "PurchasesHybridCommon", '19.0.0'
29
29
  spec.swift_version = '5.7'
30
30
  end
@@ -12,7 +12,13 @@ buildscript {
12
12
  }
13
13
 
14
14
  apply plugin: 'com.android.library'
15
- apply plugin: 'kotlin-android'
15
+ // AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
16
+ // itself. Applying kotlin-android on top of it fails with
17
+ // "Cannot add extension with name 'kotlin'". Only apply it when nothing
18
+ // has registered that extension yet.
19
+ if (project.extensions.findByName('kotlin') == null) {
20
+ apply plugin: 'kotlin-android'
21
+ }
16
22
 
17
23
  def getExtOrDefault(name) {
18
24
  return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Purchases_' + name]
@@ -29,7 +35,7 @@ android {
29
35
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
36
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
37
  versionCode 1
32
- versionName '10.9.0'
38
+ versionName '10.10.0'
33
39
  }
34
40
 
35
41
  buildTypes {
@@ -121,6 +127,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
121
127
  dependencies {
122
128
  //noinspection GradleDynamicVersion
123
129
  api 'com.facebook.react:react-native:+'
124
- implementation 'com.revenuecat.purchases:purchases-hybrid-common:18.33.1'
130
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:19.0.0'
125
131
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
126
132
  }
@@ -51,7 +51,7 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd
51
51
  private static final String TRACKED_EVENT = "Purchases-TrackedEvent";
52
52
  private static final String DEBUG_EVENT = "Purchases-DebugEvent";
53
53
  public static final String PLATFORM_NAME = "react-native";
54
- public static final String PLUGIN_VERSION = "10.9.0";
54
+ public static final String PLUGIN_VERSION = "10.10.0";
55
55
 
56
56
  private final ReactApplicationContext reactContext;
57
57
 
@@ -43,7 +43,7 @@ var typeGuards_1 = require("./typeGuards");
43
43
  var environment_1 = require("../utils/environment");
44
44
  var utils_1 = require("./utils");
45
45
  var purchaseSimulatedPackageHelper_1 = require("./simulatedstore/purchaseSimulatedPackageHelper");
46
- var packageVersion = '10.9.0';
46
+ var packageVersion = '10.10.0';
47
47
  /**
48
48
  * Browser implementation of the native module. This will be used in the browser and Expo Go.
49
49
  */
@@ -11,15 +11,15 @@ var react_native_1 = require("react-native");
11
11
  */
12
12
  function shouldUseBrowserMode() {
13
13
  if (isExpoGo()) {
14
- console.log('Expo Go app detected. Using RevenueCat in Browser Mode.');
14
+ logBrowserModeDetection('Expo Go app detected. Using RevenueCat in Browser Mode.');
15
15
  return true;
16
16
  }
17
17
  else if (isRorkSandbox()) {
18
- console.log('Rork app detected. Using RevenueCat in Preview API Mode.');
18
+ logBrowserModeDetection('Rork app detected. Using RevenueCat in Preview API Mode.');
19
19
  return true;
20
20
  }
21
21
  else if (isWebPlatform()) {
22
- console.log('Web platform detected. Using RevenueCat in Browser Mode.');
22
+ logBrowserModeDetection('Web platform detected. Using RevenueCat in Browser Mode.');
23
23
  return true;
24
24
  }
25
25
  else {
@@ -27,6 +27,9 @@ function shouldUseBrowserMode() {
27
27
  }
28
28
  }
29
29
  exports.shouldUseBrowserMode = shouldUseBrowserMode;
30
+ function logBrowserModeDetection(message) {
31
+ console.log("[RevenueCat] ".concat(message));
32
+ }
30
33
  /**
31
34
  * Detects if the app is running in Expo Go
32
35
  */
package/ios/RNPurchases.m CHANGED
@@ -789,7 +789,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
789
789
  }
790
790
 
791
791
  - (NSString *)platformFlavorVersion {
792
- return @"10.9.0";
792
+ return @"10.10.0";
793
793
  }
794
794
 
795
795
  @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": "10.9.0",
4
+ "version": "10.10.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",
@@ -118,7 +118,7 @@
118
118
  ]
119
119
  },
120
120
  "dependencies": {
121
- "@revenuecat/purchases-js-hybrid-mappings": "18.33.1",
122
- "@revenuecat/purchases-typescript-internal": "18.33.1"
121
+ "@revenuecat/purchases-js-hybrid-mappings": "19.0.0",
122
+ "@revenuecat/purchases-typescript-internal": "19.0.0"
123
123
  }
124
124
  }