Exposes the transactionBackgroundViewPaywallOption to Objective-C by making it non-optional and adding a none case in place of setting it to nil.
Renames getPaywallViewController to getPaywall.
Renames paywallStatePublisher property on PaywallViewController to statePublisher.
Changes the presentation error domain code from SWPresentationError to SWKPresentationError.
Enhancements
Adds paywall caching. This is disabled by default but we'll roll this out to users accounts remotely. With this enhancement, your paywalls will load lightning fast and will reduce network load of your app.
Fixes issue where a crash would occur if storage was full and a persistent container couldn't be created.
Fixes thread safety issue when using a lazy variable to retrieve products.
If the internet is offline when trying to present a paywall, the paywall configuration hasn't been retrieved, and the user is not subscribed, it now throws a presentationError. If the internet reconnects future paywalls will show.
Fixes retry logic for requests.
Fixes crash when handling a deep link.
Creates a strong reference to the purchase controller as it was getting deallocated if you didn't keep a hold on it.
Checklist
[x] All tests pass. Demo project builds and runs.
[x] I added tests, an experiment, or detailed why my change isn't tested.
[x] I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
[x] I have run swiftlint in the main directory and fixed any issues.
[ ] I have updated the SDK documentation as well as the online docs.
Changes in this pull request
Breaking Changes
transactionBackgroundView
PaywallOption
to Objective-C by making it non-optional and adding anone
case in place of setting it tonil
.getPaywallViewController
togetPaywall
.paywallStatePublisher
property onPaywallViewController
tostatePublisher
.SWPresentationError
toSWKPresentationError
.Enhancements
Logging
SuperwallOption
to Objective C.info
on thePaywallViewController
.rawTrialPeriodPrice
,trialPeriodPrice
,trialPeriodDailyPrice
,trialPeriodWeeklyPrice
,trialPeriodMonthlyPrice
,trialPeriodYearlyPrice
.Fixes
Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.swiftlint
in the main directory and fixed any issues.