Skip to content

3.0.0-rc.6

Compare
Choose a tag to compare
@jakemor jakemor released this 13 May 14:02
· 383 commits to master since this release

Breaking Changes

  • Adds a PaywallViewControllerDelegate to the getPaywallViewController functions. This is mandatory and is how you control what happens after a paywall is dismissed.
  • The completion block of getPaywallViewController(forEvent:params:paywallOverrides:delegate:completion:) now accepts an optional PaywallViewController, an optional PaywallSkippedReason and an optional Error. This makes it easier to understand when the paywall was skipped vs when a real error occurred.
  • Renamed the PaywallResult case closed to declined.

Enhancements

  • Exposes PaywallOverrides and PaywallViewController to Objective-C.
  • Adds Objective-C convenience methods to PaywallOverrides.
  • Adds a device.isFirstAppOpen 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(...).
  • Adds isInspectable to the paywall web view if running on iOS 16.4+.
  • Exposes PaywallViewControllerDelegate to be used with getPaywallViewController(...)

Fixes

  • Fixes various memory related crashes.
  • Fixes a crash when calling reset() when a paywall is displayed.