π SimpleMVI 0.3.0 β First Stable Release
SimpleMVI is a small Kotlin Multiplatform library for explicit MVI-style state containers β no reducers, no action pipelines, no middleware, no store framework required.
π¦ What's Included
simple-mvi-core
StateUi,IntentUi, andEffectUimarker contractsSimpleMVI<State, Intent, Effect>interfacemvi(...)store factory- Observable UI state through
StateFlow - One-time UI effects through a separate effects flow
updateState,emitEffect, andtryEmitEffect- Configurable effect buffering with
extraBufferCapacityandBufferOverflow
simple-mvi-compose MviViewModelfor Compose and Compose Multiplatform screenssendEffect(...)helper inside ViewModelsCollectEffectsUiEvent(...)for lifecycle-aware one-time effect collection
simple-mvi-androidSavedStateHandle.getOrPut(...)helper for route arguments and small saved values
π Supported Platforms
- Android
- iOS
- Compose Multiplatform
βοΈ Installation
dependencies {
implementation("io.github.v1rus-dev:simple-mvi-core:0.3.0")
implementation("io.github.v1rus-dev:simple-mvi-compose:0.3.0")
implementation("io.github.v1rus-dev:simple-mvi-android:0.3.0")
}