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.
- package/android/build.gradle +2 -3
- package/android/build.gradle.bck +2 -3
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java +1 -1
- package/dist/purchaserInfo.d.ts +0 -1
- package/dist/purchases.d.ts +1 -2
- package/ios/RNPurchases.m +1 -1
- package/ios/RNPurchases.m.bck +1 -1
- package/package.json +1 -1
- package/scripts/build.js.bck +19 -0
package/android/build.gradle
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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
|
package/android/build.gradle.bck
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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
|
|
@@ -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.
|
|
46
|
+
public static final String PLUGIN_VERSION = "4.6.2";
|
|
47
47
|
|
|
48
48
|
private final ReactApplicationContext reactContext;
|
|
49
49
|
|
package/dist/purchaserInfo.d.ts
CHANGED
|
@@ -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
|
/**
|
package/dist/purchases.d.ts
CHANGED
|
@@ -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
package/ios/RNPurchases.m.bck
CHANGED
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.
|
|
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
|
+
}
|