From 0b1dacd6cdc1c1c32308774f0d65e76efb0cb1da Mon Sep 17 00:00:00 2001 From: RevenueCat CI Date: Wed, 18 Oct 2023 17:02:19 +0000 Subject: [PATCH] Version bump for 7.1.0 --- .version | 2 +- CHANGELOG.latest.md | 51 ++----------------- CHANGELOG.md | 8 +++ android/build.gradle | 2 +- .../purchases/react/RNPurchasesModule.java | 2 +- ios/RNPurchases.m | 2 +- package.json | 2 +- scripts/docs/index.html | 2 +- 8 files changed, 19 insertions(+), 52 deletions(-) diff --git a/.version b/.version index 6c36faba..a3fcc712 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -7.1.0-SNAPSHOT +7.1.0 diff --git a/CHANGELOG.latest.md b/CHANGELOG.latest.md index bb8fd100..9a2c0845 100644 --- a/CHANGELOG.latest.md +++ b/CHANGELOG.latest.md @@ -1,47 +1,6 @@ -**RevenueCat React Native SDK v7** is here!! 😻 - -This latest release updates the SDK to use BillingClient 6 in Android. This version of BillingClient brings little change compared with BillingClient 5 which brought an entire new subscription model which resulted in large changes across the entire SDK. - -The only modification at the API level involves replacing "ProrationMode" with "ReplacementMode". The specific replacement modes remain unchanged. - -If your app doesn't currently use DEFERRED replacement modes, then you should be safe to upgrade to this version without changes in behavior. - -If your app supports product changes using [DEFERRED replacement mode](https://www.revenuecat.com/docs/managing-subscriptions#google-play), then you can either stick with the previous major version until support for DEFERRED is re-introduced in this major version, or you can remove DEFERRED replacement options from your app. - -If you are using the SDK in observer mode, you should only use v7 in Android if you're using BillingClient 6. - -See the [Android Native - 6.x to 7.x Migration](https://github.com/RevenueCat/purchases-android/blob/main/migrations/v7-MIGRATION.md) for more details. - -If you come from an older version of the RevenueCat SDK, see [Android Native - 5.x to 6.x Migration](https://www.revenuecat.com/docs/android-native-5x-to-6x-migration) for a more thorough explanation of the new Google subscription model announced with BillingClient 5 and how to take advantage of it. - -### Bumped minimum Android SDK version - -RevenueCat SDK v7 bumps minimum Android SDK version from Android 4.0 (API level 16) to Android 4.4 (API level 19). - -### Support for InApp Messages - -We've added new APIs to support InApp messages both in Android and iOS. You can read more about: -* [Google Play InApp Messages](https://rev.cat/googleplayinappmessaging) which will show users a snackbar message during grace period and account hold once per day and provide them an opportunity to fix their payment without leaving the app. -* [App Store InApp messages](https://rev.cat/storekit-message) which will show a modal during grace period once per subscription. - -InApp Messages are shown by default in both platforms. If you want to disable this behaviour during configuration of the RevenueCat SDK, setup the `shouldShowInAppMessagesAutomatically` property during configuration to `false`: - -```typescript - Purchases.configure({ - apiKey, - appUserID, - observerMode, - userDefaultsSuiteName, - usesStoreKit2IfAvailable, - useAmazon, - shouldShowInAppMessagesAutomatically - }); -``` - ### Dependency Updates -* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.0.0 and temporarily removes `DEFERRED` proration mode (#747) via RevenueCat Git Bot (@RCGitBot) - * [Android 7.0.0](https://github.com/RevenueCat/purchases-android/releases/tag/7.0.0) - * [iOS 4.27.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.27.0) - * [iOS 4.26.2](https://github.com/RevenueCat/purchases-ios/releases/tag/4.26.2) -* Bump cocoapods from 1.12.1 to 1.13.0 (#740) via dependabot[bot] (@dependabot[bot]) - +* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.1.0 (#752) via RevenueCat Git Bot (@RCGitBot) + * [Android 7.0.1](https://github.com/RevenueCat/purchases-android/releases/tag/7.0.1) + * [iOS 4.28.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.28.0) + * [iOS 4.27.2](https://github.com/RevenueCat/purchases-ios/releases/tag/4.27.2) + * [iOS 4.27.1](https://github.com/RevenueCat/purchases-ios/releases/tag/4.27.1) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9efef00..3287f578 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 7.1.0 +### Dependency Updates +* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.1.0 (#752) via RevenueCat Git Bot (@RCGitBot) + * [Android 7.0.1](https://github.com/RevenueCat/purchases-android/releases/tag/7.0.1) + * [iOS 4.28.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.28.0) + * [iOS 4.27.2](https://github.com/RevenueCat/purchases-ios/releases/tag/4.27.2) + * [iOS 4.27.1](https://github.com/RevenueCat/purchases-ios/releases/tag/4.27.1) + ## 7.0.0 **RevenueCat React Native SDK v7** is here!! 😻 diff --git a/android/build.gradle b/android/build.gradle index 386dcd49..b9422d6f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -29,7 +29,7 @@ android { minSdkVersion getExtOrIntegerDefault('minSdkVersion') targetSdkVersion getExtOrIntegerDefault('targetSdkVersion') versionCode 1 - versionName '7.1.0-SNAPSHOT' + versionName '7.1.0' } 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 3f834093..88fa5412 100644 --- a/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java +++ b/android/src/main/java/com/revenuecat/purchases/react/RNPurchasesModule.java @@ -46,7 +46,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.1.0-SNAPSHOT"; + public static final String PLUGIN_VERSION = "7.1.0"; private final ReactApplicationContext reactContext; diff --git a/ios/RNPurchases.m b/ios/RNPurchases.m index 80248cf6..b46ccf34 100644 --- a/ios/RNPurchases.m +++ b/ios/RNPurchases.m @@ -470,7 +470,7 @@ - (NSString *)platformFlavor { } - (NSString *)platformFlavorVersion { - return @"7.1.0-SNAPSHOT"; + return @"7.1.0"; } @end diff --git a/package.json b/package.json index 2e694a81..37552d5e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-purchases", "title": "React Native Purchases", - "version": "7.1.0-SNAPSHOT", + "version": "7.1.0", "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 18c31d5e..b89435c9 100644 --- a/scripts/docs/index.html +++ b/scripts/docs/index.html @@ -2,7 +2,7 @@ - +