Tracks an identity_alias event whenever identify is called to alias Superwall's anonymous ID with a developer provided id.
Adds setInterfaceStyle(to:) which can be used to override the system interface style.
Adds device.interfaceStyleMode to the device template, which can be automatic or manual if overriding the interface style.
Fixes
Changes the $feature_gating parameter in PaywallInfo from 0 and 1 to GATED and NON_GATED to prevent confusion.
Fixes issue where feature gating wasn't working correctly when an implicit event triggered by paywall_decline, transaction_fail, transaction_abandon, or survey_response was resulting in a skippedPaywallState.
Fixes issue where a transaction_abandon implicit event that resulted in a skippedPaywallState was accidentally closing a paywall when it shouldn't have.
Checklist
[x] All unit tests pass.
[x] All UI tests pass.
[x] Demo project builds and runs.
[x] I added/updated tests 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
Enhancements
identity_alias
event whenever identify is called to alias Superwall's anonymous ID with a developer provided id.setInterfaceStyle(to:)
which can be used to override the system interface style.device.interfaceStyleMode
to the device template, which can beautomatic
ormanual
if overriding the interface style.Fixes
$feature_gating
parameter inPaywallInfo
from 0 and 1 toGATED
andNON_GATED
to prevent confusion.paywall_decline
,transaction_fail
,transaction_abandon
, orsurvey_response
was resulting in askipped
PaywallState
.transaction_abandon
implicit event that resulted in askipped
PaywallState
was accidentally closing a paywall when it shouldn't have.Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.swiftlint
in the main directory and fixed any issues.