- Fourth RC for RevenueCat framework v4 🎉
100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
RC 4 introduces the following updates:
API changes:
Breaking changes:
- Replaced
checkPromotionalDiscountEligibility
withgetPromotionalOffer
, which returns aPromotionalOffer
. - Renamed
Purchases/purchase(package:discount:)
and its variants toPurchases/purchase(package:promotionalOffer:)
. They now take aPromotionalOffer
instead of aStoreProductDiscount
. - [Objective-C only]: Updated type of
StoreProduct.price
andStoreProductDiscount.price
fromNSDecimal
to the much more usefulNSDecimalNumber
.
Additions:
- Added
StoreProduct.ProductType
, andStoreProduct.ProductCategory
, which provide extra information about whether a product is a consumable, non-consumable, auto-renewable or non-auto-renewable subscription. - Added
currencyCode
toStoreProduct
andStoreProductDiscount
. - Added
localizedPriceString
toStoreProductDiscount
.
Documentation:
- Documentation can be found in https://revenuecat-docs.netlify.app/documentation/Revenuecat.
- We've made several improvements to docstrings and added a few landing pages for the most important sections of the SDK.
Other changes:
- There are lots of under the hood improvements. If you see any issues we'd appreciate bug reports!
Changes from previous RC
These changes add to all of the changes from beta RC 2, listed here.
To view new release, visit https://github.com/RevenueCat/purchases-ios/releases/tag/4.0.0-rc.4