RevenueCat v4.0.0-RC.1 Release Notes
-
- First RC for RevenueCat framework v4 ๐ 100% Swift framework + ObjC support.
- See our [RevenueCat V4 API update doc](Documentation.docc/V4_API_Migration_guide.md) for API updates.
โก๏ธ RC 1 introduces the following updates:
API changes:
๐ฆ
Purchases.paymentDiscount(forProductDiscount:product:completion:)
andPurchases.paymentDiscount(forProductDiscount:product:)
have been removed. Now, instead of obtaining theSKPaymentDiscount
from aSKProductDiscount
to then callpurchase(package:discount:)
, you check eligibility for the promo offer by callingcheckPromotionalDiscountEligibility(forProductDiscount:product:)
, then get theStoreProductDiscount
directly from theStoreProduct
and pass that intopurchase(package:discount:)
.StoreProduct
andStoreProductDiscount
, replaceSKProduct
andSKProductDiscount
in the following methods:Purchases.getProducts(_:completion:)
Purchases.products(_:)
Purchases.purchase(product:completion:)
Purchases.purchase(product:)
Purchases.purchase(product:discount:completion:)
Purchases.purchase(product:discount:)
Purchases.purchase(package:discount:completion:)
Purchases.purchase(package:discount:)
PurchasesDelegate.purchases(shouldPurchasePromoProduct:defermentBlock:)
StoreProduct.introductoryPrice
has been renamed toStoreProduct.introductoryDiscount
StoreTransaction
now includesquantity
โช Renamed
Purchases.restoreTransactions
toPurchases.restorePurchases
Lowered
StoreProduct.introductoryDiscount
availability to iOS 11.2 and equivalent OS versionsโ Added several
@available
annotations for automatic migration from StoreKit types
โ In addition to all of the changes from beta 10, listed here.
Other changes:
- ๐ There are lots of under the hood improvements. If you see any issues we'd appreciate bug reports!