1.2.0
Enhancements
- Adds DSL methods for configuring the SDK. You can now use a configuration block:
fun Application.configureSuperwall( apiKey: String, configure: SuperwallBuilder.() -> Unit, )
This allows you to configure the SDK in a more idiomatic way:
configureSuperwall(CONSTANT_API_KEY){
options {
logging {
level = LogLevel.debug
}
paywalls {
shouldPreload = false
}
}
}
Deprecations
This release includes multiple deprecations that will be removed in upcoming versions.
Most are internal and will not affect the public API, those that will are marked as such and a simple migration
path is provided. The notable ones in the public API are as follows:
-
Deprecated
DebugViewControllerActivity
in favor ofDebugViewActivity
-
Deprecated
PaywallViewController
in favor ofPaywallView
- Deprecated belonging methods:
viewWillAppear
in favor ofbeforeViewCreated
viewDidAppear
in favor ofonViewCreated
viewWillDisappear
in favor ofbeforeOnDestroy
viewDidDisappear
in favor ofdestroyed
presentAlert
in favor ofshowAlert
- Deprecated belonging methods:
-
Deprecated
PaywallViewControllerDelegate
in favor ofPaywallViewCallback
- Deprecated belonging methods:
didFinish
in favor ofonFinished
- Deprecated belonging methods:
-
Deprecated
PaywallViewControllerEventDelegate
in favor ofPaywallViewEventCallback
- Users might also note deprecation of
PaywallWebEvent.OpenedUrlInSafari
in favor ofPaywallWebEvent.OpenedUrlInChrome
didFinish
in favor ofonFinished
- Users might also note deprecation of
-
In
Superwall
, the following methods were deprecated:Superwall.paywallViewController
in favor ofSuperwall.paywallView
Superwall.eventDidOccur
argumentpaywallViewController
in favor ofpaywallView
Superwall.dismiss
in favor of `Superwall.presentPaywallViewSuperwall.presentPaywallViewController
in favor ofSuperwall.presentPaywallView
-
Deprecated
Paywallmanager.getPaywallViewController
in favor ofPaywallManager.getPaywallView
-
Deprecated
DebugManager.viewController
in favor ofDebugManager.view
-
Deprecated
DebugViewController
in favor ofDebugView
-
Deprecated
LogScope.debugViewController
in favor ofLogScope.debugView
-
Deprecated
PaywallPresentationRequestStatus.NoPaywallViewController
in favor ofNoPaywallView