react-native-purchases 4.5.3 → 4.6.2

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.
@@ -2,7 +2,7 @@ buildscript {
2
2
  def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['Purchases_kotlinVersion']
3
3
  repositories {
4
4
  google()
5
- jcenter()
5
+ mavenCentral()
6
6
  }
7
7
 
8
8
  dependencies {
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '4.5.3'
32
+ versionName '4.6.2'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -48,7 +48,6 @@ android {
48
48
 
49
49
  repositories {
50
50
  mavenCentral()
51
- jcenter()
52
51
  google()
53
52
 
54
53
  def found = false
@@ -2,7 +2,7 @@ buildscript {
2
2
  def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['Purchases_kotlinVersion']
3
3
  repositories {
4
4
  google()
5
- jcenter()
5
+ mavenCentral()
6
6
  }
7
7
 
8
8
  dependencies {
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '4.5.2'
32
+ versionName '4.6.2'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -48,7 +48,6 @@ android {
48
48
 
49
49
  repositories {
50
50
  mavenCentral()
51
- jcenter()
52
51
  google()
53
52
 
54
53
  def found = false
@@ -1,5 +1,5 @@
1
1
  android.useAndroidX=true
2
- Purchases_kotlinVersion=1.4.0
2
+ Purchases_kotlinVersion=1.6.21
3
3
  Purchases_compileSdkVersion=28
4
4
  Purchases_targetSdkVersion=28
5
5
  Purchases_minSdkVersion=16
@@ -43,7 +43,7 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd
43
43
 
44
44
  private static final String PURCHASER_INFO_UPDATED = "Purchases-PurchaserInfoUpdated";
45
45
  public static final String PLATFORM_NAME = "react-native";
46
- public static final String PLUGIN_VERSION = "4.4.1";
46
+ public static final String PLUGIN_VERSION = "4.6.2";
47
47
 
48
48
  private final ReactApplicationContext reactContext;
49
49
 
@@ -12,7 +12,6 @@ export interface PurchasesEntitlementInfo {
12
12
  readonly isActive: boolean;
13
13
  /**
14
14
  * True if the underlying subscription is set to renew at the end of the billing period (expirationDate).
15
- * Will always be True if entitlement is for lifetime access.
16
15
  */
17
16
  readonly willRenew: boolean;
18
17
  /**
@@ -8,7 +8,7 @@ import { PRORATION_MODE, PACKAGE_TYPE, INTRO_ELIGIBILITY_STATUS, PurchasesOfferi
8
8
  */
9
9
  export declare type PurchaserInfoUpdateListener = (purchaserInfo: PurchaserInfo) => void;
10
10
  export declare type ShouldPurchasePromoProductListener = (deferredPurchase: () => Promise<MakePurchaseResult>) => void;
11
- declare type MakePurchaseResult = {
11
+ export declare type MakePurchaseResult = {
12
12
  productIdentifier: string;
13
13
  purchaserInfo: PurchaserInfo;
14
14
  };
@@ -578,4 +578,3 @@ export default class Purchases {
578
578
  static isConfigured(): Promise<boolean>;
579
579
  private static throwIfNotConfigured;
580
580
  }
581
- export {};
package/ios/RNPurchases.m CHANGED
@@ -369,7 +369,7 @@ shouldPurchasePromoProduct:(SKProduct *)product
369
369
  }
370
370
 
371
371
  - (NSString *)platformFlavorVersion {
372
- return @"4.5.3";
372
+ return @"4.6.2";
373
373
  }
374
374
 
375
375
  @end
@@ -369,7 +369,7 @@ shouldPurchasePromoProduct:(SKProduct *)product
369
369
  }
370
370
 
371
371
  - (NSString *)platformFlavorVersion {
372
- return @"4.5.2";
372
+ return @"4.6.2";
373
373
  }
374
374
 
375
375
  @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": "4.5.3",
4
+ "version": "4.6.2",
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",
@@ -0,0 +1,19 @@
1
+ const {exec} = require("child_process");
2
+ const os = require("os");
3
+
4
+ if (os.type() === "Linux") {
5
+ console.log("Skipping iOS Dependencies");
6
+ } else if (os.type() === "Darwin") {
7
+ const downloadProcess = exec(
8
+ "./scripts/download-purchases-framework.sh 3.14.1"
9
+ );
10
+ downloadProcess.stdout.pipe(process.stdout);
11
+ const downloadProcessCommon = exec(
12
+ "./scripts/download-purchases-common.sh 1.11.1"
13
+ );
14
+ downloadProcessCommon.stdout.pipe(process.stdout);
15
+ } else if (os.type() === "Windows_NT") {
16
+ console.log("Skipping iOS Dependencies");
17
+ } else {
18
+ throw new Error(`Unsupported OS found: ${os.type()}`);
19
+ }