Skip to content

Releases: RevenueCat/react-native-purchases

6.0.0-beta.1

26 Apr 14:12
Compare
Choose a tag to compare
6.0.0-beta.1 Pre-release
Pre-release

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 SubscriptionOptions.
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 or StoreProduct
  • 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

25 Apr 20:45
Compare
Choose a tag to compare

Dependency Updates

  • Bump danger from 9.2.0 to 9.3.0 (#615) via dependabot[bot] (@dependabot[bot])

5.13.3

20 Apr 16:23
Compare
Choose a tag to compare

Dependency Updates

Other Changes

  • Update react-native-reanimated in MagicWeather example app (#610) via Andy Boedo (@aboedo)

5.13.2

12 Apr 16:40
Compare
Choose a tag to compare

Dependency Updates

Other Changes

  • Create v4_to_v5_migration_guide.md (#601) via Andy Boedo (@aboedo)

5.13.1

22 Mar 17:55
Compare
Choose a tag to compare

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

15 Mar 23:24
Compare
Choose a tag to compare

Dependency Updates

5.12.0

13 Mar 20:43
Compare
Choose a tag to compare

New Features

  • Add immediateAndChargeFullPrice proration mode (#574) via Andy Boedo (@aboedo)

Other Changes

  • Deprecate usesStoreKit2IfAvailable (#570) via Andy Boedo (@aboedo)

5.11.1

08 Mar 23:24
Compare
Choose a tag to compare

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.5 (#569) via RevenueCat Git Bot (@RCGitBot)

5.11.0

01 Mar 23:04
Compare
Choose a tag to compare

New Features

  • Add syncObserverModeAmazonPurchase (#552) via Cesar de la Vega (@vegaro)

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

22 Feb 22:57
Compare
Choose a tag to compare

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])

Other Changes

  • Reformats files (#553) via Cesar de la Vega (@vegaro)