Improves paywall loading and preloading performance
Reduces impact of preloading on render performance
Updates methods to return kotlin.Result instead of relying on throwing exceptions
This introduces some minor breaking changes:
configure completion block now provides a Result<Unit> that can be used to check for success or failure
handleDeepLink now returns a Result<Boolean>
getAssignments now returns a Result<List<ConfirmedAssignments>>
confirmAllAssignments now returns a Result<List<ConfirmedAssignments>>
getPresentationResult now returns a Result<PresentationResult>
getPaywallComponents now returns a Result<PaywallComponents>
Removes Gson dependency
Adds isScrollEnabled flag to enable remote controll of Paywall scrollability
Adds PaywallResourceLoadFail event to enable tracking of failed resources in Paywall
Improves bottom navigation bar color handling
Fixes
Fixes issue where paywalls without fallback would fail to load and missing resource would cause a failure event
Fixes issue with trialPeriodDays rounding to the higher value instead of lower, i.e. where P4W2D would return 28 days instead of 30, it now returns 30.
Fixes issue with system navigation bar not respecting paywall color
Fixes issues with cursor allocation in Room transaction
Improves handling of chromium render process crash
Checklist
[ ] All unit tests pass.
[ ] All UI tests pass.
[ ] Demo project builds and runs.
[ ] I added/updated tests or detailed why my change isn't tested.
[ ] I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
[ ] I have run ktlint in the main directory and fixed any issues.
[ ] I have updated the SDK documentation as well as the online docs.
1.4.0
Enhancements
kotlin.Result
instead of relying on throwing exceptionsconfigure
completion block now provides aResult<Unit>
that can be used to check for success or failurehandleDeepLink
now returns aResult<Boolean>
getAssignments
now returns aResult<List<ConfirmedAssignments>>
confirmAllAssignments
now returns aResult<List<ConfirmedAssignments>>
getPresentationResult
now returns aResult<PresentationResult>
getPaywallComponents
now returns aResult<PaywallComponents>
isScrollEnabled
flag to enable remote controll of Paywall scrollabilityPaywallResourceLoadFail
event to enable tracking of failed resources in PaywallFixes
trialPeriodDays
rounding to the higher value instead of lower, i.e. whereP4W2D
would return 28 days instead of 30, it now returns 30.Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.ktlint
in the main directory and fixed any issues.