Breaking Changes
- Changes the
logLevel
to be non-optional and introduces anone
case to turn off logging. - Removes all guides from the SDK documentation. From now on, our online docs provide guides and the SDK documentation is only there as a technical reference.
- Changes
TrackResultObjc
toPresentationResultObjc
- Removes convenience methods for creating PaywallPresentationHandlers because they were a bit confusing
- Changes the return type of
PurchaseController.restorePurchases()
frombool
toRestorationResult
Enhancements
- If you're using SwiftUI, you can now call
Superwall.configure
in theinit()
of yourApp
file. This means you don't need to have aUIApplicationDelegate
. - Prevents validation of restorations and purchases if you're using a
PurchaseController
- it's now all on you! - Updates Objective-C sample app to use
Superwall.register
and removes legacy StoreKit code. - Simplifies SwiftUI and RevenueCat example app.
- You can now access
device.subscriptionStatus
in a rule, which is a string that's eitherACTIVE
,INACTIVE
, orUNKNOWN
. - You no longer need to have swiftlint installed to run our example apps.
- If you're not using a
PurchaseController
and a user comes across the "You're already subscribed to this product" popup, we will now correctly identify this as a restoration and not a purchase. This can happen when testing in sandbox if you purchase a product -> delete and reinstall the app -> open a paywall and purchase. - Adds static variable
Superwall.isInitialized
which istrue
when initialization is complete andSuperwall.shared
can be accessed. - Adds
transaction_abandon
andtransaction_fail
as potential triggers. This comes with a newDismissState
caseclosedForNextPaywall
, which is returned when dismissing one paywall for another.
Fixes
- Fixes issue where an invalid URL provided for an "Open URL" click behavior would result in a crash.
- Exposes
PaywallPresentationHandler
asSWKPaywallPresentationHandler
for Objective-C. - Fixes issue #127, where calling identify with the same userId would prevent paywalls from showing.