- First RC for RevenueCat framework v4 🎉
100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc 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!
To view new release, visit https://github.com/RevenueCat/purchases-ios/releases/tag/4.0.0-rc.1