Releases: RevenueCat/react-native-purchases
6.0.0-beta.1
The first beta of RevenueCat Purchases React Native v6 is here!! 😻
This latest release updates the Android SDK dependency from v5 to v6 to use BillingClient 5. This version of BillingClient brings an entire new subscription model which has resulted in large changes across the entire SDK.
Migration Guides
- See Android Native - 5.x to 6.x Migration for a
more thorough explanation of the new Google subscription model announced with BillingClient 5 and how to take
advantage of it in V6. This guide includes tips on product setup with the new model.
New SubscriptionOption
concept
Purchasing
In v5, a Google Play Android Package
or StoreProduct
represented a single purchaseable entity, and free trials or intro
offers would automatically be applied to the purchase if the user was eligible.
Now, in React Native v6, an Google Play Android Package
or StoreProduct
represents a duration of a subscription and contains all the ways to
purchase that duration -- any offers and its base plan. Each of these purchase options are SubscriptionOption
s.
When passing a Package
to purchasePackage()
or StoreProduct
to purchaseStoreProduct()
, the SDK will use the following logic to choose which
SubscriptionOption
to purchase:
- Filters out offers with "rc-ignore-offer" tag
- Uses
SubscriptionOption
with the longest free trial or cheapest first phase- Only offers the user is eligible will be applied
- Falls back to base plan
For more control, purchase subscription options with the new purchaseSubscriptionOption()
method.
Models
StoreProduct
now has a few new properties use for Google Play Android:
defaultOption
- A subscription option that will automatically be applie when purchasing a
Package
orStoreProduct
- A subscription option that will automatically be applie when purchasing a
subscriptionOptions
- A list of subscription options (could be null)
Observer Mode
Observer mode is still supported in v6. Other than updating the SDK version, there are no changes required.
5.13.4
5.13.3
Dependency Updates
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.14.3 (#612) via RevenueCat Git Bot (@RCGitBot)
- Bump cocoapods from 1.12.0 to 1.12.1 (#609) via dependabot[bot] (@dependabot[bot])
- Bump fastlane from 2.212.1 to 2.212.2 (#608) via dependabot[bot] (@dependabot[bot])
Other Changes
5.13.2
5.13.1
Dependency Updates
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.14.1 (#587) via RevenueCat Git Bot (@RCGitBot)
- Bump activesupport from 6.1.7.1 to 6.1.7.3 in /examples/MagicWeather (#582) via dependabot[bot] (@dependabot[bot])
- Bump activesupport from 6.1.7.2 to 6.1.7.3 in /examples/purchaseTesterTypescript (#583) via dependabot[bot] (@dependabot[bot])
- Bump activesupport from 7.0.4.2 to 7.0.4.3 (#584) via dependabot[bot] (@dependabot[bot])
5.13.0
5.12.0
5.11.1
5.11.0
New Features
Dependency Updates
- Bump cocoapods from 1.11.3 to 1.12.0 (#566) via dependabot[bot] (@dependabot[bot])
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.4 (#565) via RevenueCat Git Bot (@RCGitBot)
- Bump fastlane from 2.212.0 to 2.212.1 (#564) via dependabot[bot] (@dependabot[bot])
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.3 (#561) via RevenueCat Git Bot (@RCGitBot)
5.10.1
Dependency Updates
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.2 (#559) via RevenueCat Git Bot (@RCGitBot)
- Bump fastlane from 2.211.0 to 2.212.0 (#558) via dependabot[bot] (@dependabot[bot])