Skip to content

SimpleMVI 0.3.0

Latest

Choose a tag to compare

@v1rus-dev v1rus-dev released this 26 Apr 18:51

πŸš€ 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, and EffectUi marker contracts
  • SimpleMVI<State, Intent, Effect> interface
  • mvi(...) store factory
  • Observable UI state through StateFlow
  • One-time UI effects through a separate effects flow
  • updateState, emitEffect, and tryEmitEffect
  • Configurable effect buffering with extraBufferCapacity and BufferOverflow
    simple-mvi-compose
  • MviViewModel for Compose and Compose Multiplatform screens
  • sendEffect(...) helper inside ViewModels
  • CollectEffectsUiEvent(...) for lifecycle-aware one-time effect collection
    simple-mvi-android
  • SavedStateHandle.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")
}