diff --git a/.version b/.version index c9e125ba..b7bf47f7 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -7.4.0-SNAPSHOT +7.4.0-beta.3 diff --git a/CHANGELOG.latest.md b/CHANGELOG.latest.md index 8806e15a..cfdb8a3a 100644 --- a/CHANGELOG.latest.md +++ b/CHANGELOG.latest.md @@ -1,12 +1,29 @@ -### Bugfixes -* Fix purchaseSubscriptionOption not accepting oldProductIdentifier (#764) via Toni Rico (@tonidero) -### Dependency Updates -* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.3.0 (#765) via RevenueCat Git Bot (@RCGitBot) - * [Android 7.2.0](https://github.com/RevenueCat/purchases-android/releases/tag/7.2.0) - * [Android 7.1.1](https://github.com/RevenueCat/purchases-android/releases/tag/7.1.1) - * [Android 7.1.0](https://github.com/RevenueCat/purchases-android/releases/tag/7.1.0) - * [Android 7.1.0-beta.2](https://github.com/RevenueCat/purchases-android/releases/tag/7.1.0-beta.2) - * [Android 7.1.0-beta.1](https://github.com/RevenueCat/purchases-android/releases/tag/7.1.0-beta.1) - * [iOS 4.30.2](https://github.com/RevenueCat/purchases-ios/releases/tag/4.30.2) - * [iOS 4.30.1](https://github.com/RevenueCat/purchases-ios/releases/tag/4.30.1) - * [iOS 4.30.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.30.0) +### New Features +* 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (#766) + +#### Instructions: +- Update `react-native-purchases` in your `package.json`: +```json +{ + "dependencies": { + "react-native-purchases": "7.4.0-beta.3" + } +} +``` + +#### Usage: +```javascript +import { presentPaywallIfNeeded } from 'react-native-purchases'; + + + Present paywall if PRO entitlement is not active + +``` + +#### Limitations: + +- Currently only full screen paywalls are supported +- There is no way to detect paywall events other than using `addCustomerInfoUpdateListener` +- Android's `minSdkVersion` is temporarily increased from `19` to `24` to support paywalls. This will be reverted in a future release as we split `react-native-purchases` and `react-native-purchases-ui` \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c3f434a9..82afd21a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,33 @@ +## 7.4.0-beta.3 +### New Features +* 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (#766) + +#### Instructions: +- Update `react-native-purchases` in your `package.json`: +```json +{ + "dependencies": { + "react-native-purchases": "7.4.0-beta.3" + } +} +``` + +#### Usage: +```javascript +import { presentPaywallIfNeeded } from 'react-native-purchases'; + + + Present paywall if PRO entitlement is not active + +``` + +#### Limitations: + +- Currently only full screen paywalls are supported +- There is no way to detect paywall events other than using `addCustomerInfoUpdateListener` +- Android's `minSdkVersion` is temporarily increased from `19` to `24` to support paywalls. This will be reverted in a future release as we split `react-native-purchases` and `react-native-purchases-ui` ## 7.3.0 ### Bugfixes * Fix purchaseSubscriptionOption not accepting oldProductIdentifier (#764) via Toni Rico (@tonidero) diff --git a/android/build.gradle b/android/build.gradle index 8ab6101c..e7de7153 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -29,7 +29,7 @@ android { minSdkVersion getExtOrIntegerDefault('minSdkVersion') targetSdkVersion getExtOrIntegerDefault('targetSdkVersion') versionCode 1 - versionName '7.4.0-SNAPSHOT' + versionName '7.4.0-beta.3' } buildTypes { diff --git a/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java b/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java index 7437e443..c59b5ae4 100644 --- a/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java +++ b/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java @@ -45,7 +45,7 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd private static final String CUSTOMER_INFO_UPDATED = "Purchases-CustomerInfoUpdated"; private static final String LOG_HANDLER_EVENT = "Purchases-LogHandlerEvent"; public static final String PLATFORM_NAME = "react-native"; - public static final String PLUGIN_VERSION = "7.4.0-SNAPSHOT"; + public static final String PLUGIN_VERSION = "7.4.0-beta.3"; private final ReactApplicationContext reactContext; diff --git a/ios/RNPurchases.m b/ios/RNPurchases.m index a453e334..7691758b 100644 --- a/ios/RNPurchases.m +++ b/ios/RNPurchases.m @@ -470,7 +470,7 @@ - (NSString *)platformFlavor { } - (NSString *)platformFlavorVersion { - return @"7.4.0-SNAPSHOT"; + return @"7.4.0-beta.3"; } @end diff --git a/package.json b/package.json index 315a49a0..b12da241 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-purchases", "title": "React Native Purchases", - "version": "7.4.0-SNAPSHOT", + "version": "7.4.0-beta.3", "description": "React Native in-app purchases and subscriptions made easy. Supports iOS and Android. ", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/scripts/docs/index.html b/scripts/docs/index.html index 42c88ee0..4f06bb46 100644 --- a/scripts/docs/index.html +++ b/scripts/docs/index.html @@ -2,7 +2,7 @@ - +