v3.2.0
Added generics for multi-machine states to be able to process view-state updates based on some common UI state
Migration:
Add common gesture/ui-state types
Was:
internal class MixedState : MultiMachineState<MixedGesture, MixedUiState>() {
}
Now:
internal class MixedState : MultiMachineState<MixedGesture, MixedUiState, Any, Any>() {
}
Change signature for gesture processing
Was:
override fun mapGesture(parent: MixedGesture, processor: GestureProcessor) {
}
Now:
override fun mapGesture(parent: MixedGesture, processor: GestureProcessor<Any, Any>) {
}
Change signature for ui-state processing
Was:
override fun mapUiState(provider: UiStateProvider, changedKey: MachineKey<*, *>?): MixedUiState {
}
Now:
override fun mapUiState(provider: UiStateProvider<Any>, changedKey: MachineKey<*, out Any>?): MixedUiState {
}