File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed
superwall/src/main/java/com/superwall/sdk/paywall Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 22
33The changelog for ` Superwall ` . Also see the [ releases] ( https://github.com/superwall/Superwall-Android/releases ) on GitHub.
44
5+ ## 2.7.3
6+
7+ ### Enhancements
8+ - Adds state and params to ` PaywallInfo ` for ` PaywallClose ` events
9+
510## 2.7.2.
611
712### Fixes
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ data class PaywallInfo(
215215 " experiment_id" to experiment?.id,
216216 " variant_id" to experiment?.variant?.id,
217217 " is_scroll_enabled" to isScrollEnabled,
218+ " state" to state,
218219 )
219220 params.values.removeAll { it == null }
220221 val filteredParams = params as MutableMap <String , Any >
Original file line number Diff line number Diff line change @@ -276,7 +276,8 @@ data class PaywallViewState(
276276 class SetPaywallState (
277277 val state : Map <String , Any >,
278278 ) : Updates({ viewState ->
279- viewState.copy(paywall = viewState.paywall.copy(state = state))
279+ val dropStyle = state.filterNot { it.key == " style" }
280+ viewState.copy(paywall = viewState.paywall.copy(state = dropStyle))
280281 })
281282
282283 /* *
Original file line number Diff line number Diff line change 1- SUPERWALL_VERSION = 2.7.2
1+ SUPERWALL_VERSION = 2.7.3
You can’t perform that action at this time.
0 commit comments