react-native-purchases 4.3.1 → 4.3.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.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <classpath>
3
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
4
+ <classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
5
+ <classpathentry kind="output" path="bin/default"/>
6
+ </classpath>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>android</name>
4
+ <comment>Project ReactNativeSample-react-native-purchases created by Buildship.</comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ <buildCommand>
9
+ <name>org.eclipse.jdt.core.javabuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ <buildCommand>
14
+ <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15
+ <arguments>
16
+ </arguments>
17
+ </buildCommand>
18
+ </buildSpec>
19
+ <natures>
20
+ <nature>org.eclipse.jdt.core.javanature</nature>
21
+ <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22
+ </natures>
23
+ <filteredResources>
24
+ <filter>
25
+ <id>1634928680138</id>
26
+ <name></name>
27
+ <type>30</type>
28
+ <matcher>
29
+ <id>org.eclipse.core.resources.regexFilterMatcher</id>
30
+ <arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31
+ </matcher>
32
+ </filter>
33
+ </filteredResources>
34
+ </projectDescription>
@@ -0,0 +1,13 @@
1
+ arguments=
2
+ auto.sync=false
3
+ build.scans.enabled=false
4
+ connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5
+ connection.project.dir=
6
+ eclipse.preferences.version=1
7
+ gradle.user.home=
8
+ java.home=/Users/cesardelavega/.sdkman/candidates/java/current
9
+ jvm.arguments=
10
+ offline.mode=false
11
+ override.workspace.settings=true
12
+ show.console.view=true
13
+ show.executions.view=true
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '4.3.1'
32
+ versionName '4.3.2'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -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.3.1";
46
+ public static final String PLUGIN_VERSION = "4.3.2";
47
47
 
48
48
  private final ReactApplicationContext reactContext;
49
49
 
@@ -33,10 +33,9 @@ export interface PurchasesEntitlementInfo {
33
33
  */
34
34
  readonly expirationDate: string | null;
35
35
  /**
36
- * The store where this entitlement was unlocked from. Either: appStore, macAppStore, playStore, stripe,
37
- * promotional, unknownStore
36
+ * The store where this entitlement was unlocked from.
38
37
  */
39
- readonly store: string;
38
+ readonly store: "PLAY_STORE" | "APP_STORE" | "STRIPE" | "MAC_APP_STORE" | "PROMOTIONAL" | "AMAZON" | "UNKNOWN_STORE";
40
39
  /**
41
40
  * The product identifier that unlocked this entitlement
42
41
  */
@@ -310,9 +310,9 @@ export default class Purchases {
310
310
  */
311
311
  static setAutomaticAppleSearchAdsAttributionCollection(enabled: boolean): void;
312
312
  /**
313
- * @returns { boolean } If the `appUserID` has been generated by RevenueCat or not.
313
+ * @returns { Promise<boolean> } If the `appUserID` has been generated by RevenueCat or not.
314
314
  */
315
- static isAnonymous(): boolean;
315
+ static isAnonymous(): Promise<boolean>;
316
316
  /**
317
317
  * iOS only. Computes whether or not a user is eligible for the introductory pricing period of a given product.
318
318
  * You should use this method to determine whether or not you show the user the normal product price or the
package/dist/purchases.js CHANGED
@@ -360,7 +360,7 @@ var Purchases = /** @class */ (function () {
360
360
  }
361
361
  };
362
362
  /**
363
- * @returns { boolean } If the `appUserID` has been generated by RevenueCat or not.
363
+ * @returns { Promise<boolean> } If the `appUserID` has been generated by RevenueCat or not.
364
364
  */
365
365
  Purchases.isAnonymous = function () {
366
366
  return RNPurchases.isAnonymous();
package/ios/RNPurchases.m CHANGED
@@ -358,7 +358,7 @@ shouldPurchasePromoProduct:(SKProduct *)product
358
358
  }
359
359
 
360
360
  - (NSString *)platformFlavorVersion {
361
- return @"4.3.1";
361
+ return @"4.3.2";
362
362
  }
363
363
 
364
364
  @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.3.1",
4
+ "version": "4.3.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",