Skip to content

Releases: RevenueCat/react-native-purchases

5.1.1

25 Oct 21:21
Compare
Choose a tag to compare

Other Changes

  • bump fastlane plugin to latest version (#452) via Andy Boedo (@aboedo)
  • [AUTOMATIC] Updates purchases-hybrid-common to 4.3.2 (#451) via RevenueCat Git Bot (@RCGitBot)
  • Adds missing \ via Cesar de la Vega (@vegaro)

5.1.0

07 Oct 14:42
45f55b3
Compare
Choose a tag to compare

Other Changes

  • [AUTOMATIC] Updates purchases-hybrid-common to 4.3.1 (#447) via Cesar de la Vega (@vegaro)
  • Updated main and MagicWeather README to match purchases-ios (#433) via rglanz-rc (@rglanz-rc)
  • Move prepare_next_version job to different workflow (#434) via Toni Rico (@tonidero)
  • Switch to main before preparing next release (#432) via Cesar de la Vega (@vegaro)

5.0.2

31 Aug 20:26
Compare
Choose a tag to compare

Other Changes

  • Add link to reference docs at the bottom (#426) via Andy Boedo (@aboedo)

5.0.1

31 Aug 05:12
Compare
Choose a tag to compare

Bugfixes

  • presentCodeRedemptionSheet: fixed Catalyst build (#425) via NachoSoto (@NachoSoto)
  • purchaseProduct not working when SK2 is enabled (#402)

Other Changes

  • Updated purchases-hybrid-common to 4.2.1
  • Configures Danger (#421) via Cesar de la Vega (@vegaro)
  • Add link to SDK reference to README (#419) via Jens-Fabian Goetzmann (@jefago)
  • Specify branch for deployment dependencies (#418) via Toni Rico (@tonidero)

5.0.0

23 Aug 06:34
Compare
Choose a tag to compare

Amazon store support

We have introduced support for using the Amazon Store. You can enable Amazon Store support by configuring the SDK using the new configure function:

Purchases.configure({ apiKey: "AMAZON_API_KEY", useAmazon: true });

For more information around configuration please take a look at the Amazon Store section in our docs. The official Amazon In-App Purchasing docs also contain very valuable information, specially around testing and best practices.

Apple AdServices support

New method for automatic collecting of attribution tokens on iOS and macOS using AdServices - Purchases.enableAdServicesAttributionTokenCollection()

StoreKit 2 support

This version of the SDK automatically uses StoreKit 2 APIs under the hood only for APIs that the RevenueCat team has determined work better than StoreKit 1.

New types and cleaned up naming

New types that wrap native types from Apple, Google and Amazon, and we cleaned up the naming of other types and methods for a more consistent experience.

Removed APIs

  • setUp has been removed in favor of configure
  • configure now expects an Object for the different parameters. Example:
Purchases.configure({
    apiKey: "key",
    appUserID: "user ID",
    observerMode: false,
    userDefaultsSuiteName: "suite name",
    usesStoreKit2IfAvailable: true,
    useAmazon: true
});
  • identify and createAlias have been removed in favor of logIn.
  • reset has been removed in favor of logOut.
  • addAttributionData has been removed in favor of set<NetworkID> methods.
  • PurchasesStoreProduct: removed intro_price_string, intro_price_period, intro_price_cycles, intro_price_period_unit, intro_price_period_number_of_units in favor of new introPrice: PurchasesIntroPrice.
  • PurchasesStoreTransaction: removed revenueCatId and productId in favor of transactionIdentifier and productIdentifier respectively.

Renamed APIs

4.x 5.0.0
PurchaserInfo CustomerInfo
PurchasesProduct PurchasesStoreProduct
PurchasesStoreProductProduct.price_string PurchasesStoreProductProduct.priceString
PurchasesStoreProductProduct.currency_code PurchasesStoreProductProduct.currencyCode
PurchasesTransaction PurchasesStoreTransaction
PurchasesTransaction.revenueCatId PurchasesStoreTransaction.transactionIdentifier
PurchasesTransaction.productId PurchasesStoreTransaction.productIdentifier
PurchasesDiscount PurchasesStoreProductDiscount
PurchasesPaymentDiscount PurchasesPromotionalOffer
Purchases.restoreTransactions Purchases.restorePurchases
Purchases.getPaymentDiscount Purchases.getPromotionalOffer
Purchases.invalidatePurchaserInfoCache Purchases.invalidateCustomerInfoCache
Purchases.addPurchaserInfoUpdateListener Purchases.addCustomerInfoUpdateListener
Purchases.removePurchaserInfoUpdateListener Purchases.removeCustomerInfoUpdateListener

5.0.0-beta.6

17 Aug 17:01
Compare
Choose a tag to compare
5.0.0-beta.6 Pre-release
Pre-release

⚠️⚠️ This is a pre-release version. ⚠️⚠️

  • Bump purchases-hybrid-common version to 4.1.2 (#408) via Toni Rico (@tonidero)

5.0.0-beta.5

15 Aug 17:27
a624657
Compare
Choose a tag to compare
5.0.0-beta.5 Pre-release
Pre-release

⚠️⚠️ This is a pre-release version. ⚠️⚠️

  • Bumped purchases-hybrid-common dependency to 4.1.1

5.0.0-beta.4

09 Aug 20:23
f6b78a5
Compare
Choose a tag to compare
5.0.0-beta.4 Pre-release
Pre-release

⚠️⚠️ This is a pre-release version. ⚠️⚠️

Apple AdServices support

New method for automatic collecting of attribution tokens on iOS and macOS using AdServices - Purchases.enableAdServicesAttributionTokenCollection()

StoreKit 2 support

This version of the SDK automatically uses StoreKit 2 APIs under the hood only for APIs that the RevenueCat team has determined work better than StoreKit 1.

New types and cleaned up naming

New types that wrap native types from Apple, Google and Amazon, and we cleaned up the naming of other types and methods for a more consistent experience.

Removed APIs

  • setUp has been removed in favor of configure
  • configure now expects an Object for the different parameters. Example:
Purchases.configure({
    apiKey: "key",
    appUserID: "user ID",
    observerMode: false,
    userDefaultsSuiteName: "suite name",
    usesStoreKit2IfAvailable: true,
    useAmazon: true
});
  • identify and createAlias have been removed in favor of logIn.
  • reset has been removed in favor of logOut.
  • addAttributionData has been removed in favor of set<NetworkID> methods.
  • PurchasesStoreProduct: removed intro_price_string, intro_price_period, intro_price_cycles, intro_price_period_unit, intro_price_period_number_of_units in favor of new introPrice: PurchasesIntroPrice.

Renamed APIs

4.x 5.0.0
PurchaserInfo CustomerInfo
PurchasesProduct PurchasesStoreProduct
PurchasesStoreProductProduct.price_string PurchasesStoreProductProduct.priceString
PurchasesStoreProductProduct.currency_code PurchasesStoreProductProduct.currencyCode
PurchasesTransaction PurchasesStoreTransaction
PurchasesDiscount PurchasesStoreProductDiscount
PurchasesPaymentDiscount PurchasesPromotionalOffer
Purchases.restoreTransactions Purchases.restorePurchases
Purchases.getPaymentDiscount Purchases.getPromotionalOffer
Purchases.invalidatePurchaserInfoCache Purchases.invalidateCustomerInfoCache
Purchases.addPurchaserInfoUpdateListener Purchases.addCustomerInfoUpdateListener
Purchases.removePurchaserInfoUpdateListener Purchases.removeCustomerInfoUpdateListener

5.0.0 beta 3

05 Aug 20:11
409f3d0
Compare
Choose a tag to compare
5.0.0 beta 3 Pre-release
Pre-release

⚠️⚠️ This is a pre-release version. ⚠️⚠️

StoreKit 2 support

This version of the SDK automatically uses StoreKit 2 APIs under the hood only for APIs that the RevenueCat team has determined work better than StoreKit 1.

Amazon support

We have introduced support for using the Amazon Appstore. We have extensively tested this, and there are some apps using our pre-release Amazon versions in production.

However, we have found some inconsistencies in the way Amazon Appstore prices are reported. We are actively working on patching these inconsistencies.

Please help us help you by reporting any issues you find. New RevenueCat Issue.

For more information around configuration please take a look at the Amazon Appstore section in our docs. The official Amazon In-App Purchasing docs also contain very valuable information, especially around testing and best practices.

New types and cleaned up naming

New types that wrap native types from Apple, Google and Amazon, and we cleaned up the naming of other types and methods for a more consistent experience.

Removed APIs

  • setUp has been removed in favor of configure
  • configure now expects an Object for the different parameters. Example:
Purchases.configure({
    apiKey: "key",
    appUserID: "user ID",
    observerMode: false,
    userDefaultsSuiteName: "suite name",
    usesStoreKit2IfAvailable: true,
    useAmazon: true
});
  • identify and createAlias have been removed in favor of logIn.
  • reset has been removed in favor of logOut.
  • addAttributionData has been removed in favor of set<NetworkID> methods.
  • PurchasesStoreProduct: removed intro_price_string, intro_price_period, intro_price_cycles, intro_price_period_unit, intro_price_period_number_of_units in favor of new introPrice: PurchasesIntroPrice.

Renamed APIs

4.x 5.0.0
PurchaserInfo CustomerInfo
PurchasesProduct PurchasesStoreProduct
PurchasesStoreProductProduct.price_string PurchasesStoreProductProduct.priceString
PurchasesStoreProductProduct.currency_code PurchasesStoreProductProduct.currencyCode
PurchasesTransaction PurchasesStoreTransaction
PurchasesDiscount PurchasesStoreProductDiscount
PurchasesPaymentDiscount PurchasesPromotionalOffer
Purchases.restoreTransactions Purchases.restorePurchases
Purchases.getPaymentDiscount Purchases.getPromotionalOffer
Purchases.invalidatePurchaserInfoCache Purchases.invalidateCustomerInfoCache
Purchases.addPurchaserInfoUpdateListener Purchases.addCustomerInfoUpdateListener
Purchases.removePurchaserInfoUpdateListener Purchases.removeCustomerInfoUpdateListener

5.0.0 beta 2

05 Aug 17:24
b37c86b
Compare
Choose a tag to compare
5.0.0 beta 2 Pre-release
Pre-release

⚠️⚠️ This is a pre-release version. ⚠️⚠️

StoreKit 2 support

This version of the SDK automatically uses StoreKit 2 APIs under the hood only for APIs that the RevenueCat team has determined work better than StoreKit 1.

New types and cleaned up naming

New types that wrap native types from Apple, Google and Amazon, and we cleaned up the naming of other types and methods for a more consistent experience.

Removed APIs

  • setUp has been removed in favor of configure
  • identify and createAlias have been removed in favor of logIn.
  • reset has been removed in favor of logOut.
  • addAttributionData has been removed in favor of set<NetworkID> methods.
  • PurchasesStoreProduct: removed intro_price_string, intro_price_period, intro_price_cycles, intro_price_period_unit, intro_price_period_number_of_units in favor of new introPrice: PurchasesIntroPrice.

Renamed APIs

4.x 5.0.0
PurchaserInfo CustomerInfo
PurchasesProduct PurchasesStoreProduct
PurchasesStoreProductProduct.price_string PurchasesStoreProductProduct.priceString
PurchasesStoreProductProduct.currency_code PurchasesStoreProductProduct.currencyCode
PurchasesTransaction PurchasesStoreTransaction
PurchasesDiscount PurchasesStoreProductDiscount
PurchasesPaymentDiscount PurchasesPromotionalOffer
Purchases.restoreTransactions Purchases.restorePurchases
Purchases.getPaymentDiscount Purchases.getPromotionalOffer
Purchases.invalidatePurchaserInfoCache Purchases.invalidateCustomerInfoCache
Purchases.addPurchaserInfoUpdateListener Purchases.addCustomerInfoUpdateListener
Purchases.removePurchaserInfoUpdateListener Purchases.removeCustomerInfoUpdateListener

Known issues:

  • Amazon support currently doesn't work correctly.