Releases: motorro/CommonStateMachine
Releases · motorro/CommonStateMachine
v3.2.1
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 {
}
v3.1.0
v3.0.2
v3.0.1
v3.X Breaking change
To be able to get the current UI state of the state-machine and to get rid of inconsistency of the UI state is not yet defined (no updates of UI state happened) the FlowStateMachine
and the ProxyMachineState
now require to pass initial UI state in constructors.