Adds a PaywallViewControllerDelegate to the getPaywallViewController functions. This is mandatory and is how you control what happens after a paywall is dismissed.
Renamed the PaywallResult case closed to declined.
Enhancements
Adds Objective-C convenience methods to PaywallOverrides.
Adds a device.isFirstSession property that you can use in paywall rules. This is true for the very first time a user opens the app. When the user closes and reopens the app, this will be false.
Removes the need to tell us when you're going to present/have presented a PaywallViewController that has been retrieved using getPaywallViewController(...).
Fixes
Fixes a crash when calling reset() when a paywall is displayed.
Checklist
[x] All tests pass. Demo project builds and runs.
[ ] 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
PaywallViewControllerDelegate
to thegetPaywallViewController
functions. This is mandatory and is how you control what happens after a paywall is dismissed.PaywallResult
caseclosed
todeclined
.Enhancements
PaywallOverrides
.device.isFirstSession
property that you can use in paywall rules. This istrue
for the very first time a user opens the app. When the user closes and reopens the app, this will befalse
.PaywallViewController
that has been retrieved usinggetPaywallViewController(...)
.Fixes
reset()
when a paywall is displayed.Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.swiftlint
in the main directory and fixed any issues.