kotlin-multiplatform-presenter-module
Installation
SKILL.md
When to Use This Skill
Use when you need to:
- Add a
:presentermodule to a KMP feature - Write a ViewModel that is testable on plain JVM (no Android/Compose dep)
- Define MVI contracts (
UiState,UiIntent) isolated from Compose - Wire the ViewModel into Koin so the
:uilayer can consume it - Test ViewModel logic with
runTest+ Turbine, no emulator
Trigger keywords: presenter module, ViewModel testable, MVI ViewModel, KMP ViewModel, pure Kotlin ViewModel, JVM ViewModel test, UiState UiIntent, StateFlow ViewModel, presenter layer, no Compose ViewModel, screen logic, UI state, state management, screen state, ViewModel setup, test ViewModel, screen behavior, handle user input, form state, form handling, screen interaction.
Freshness rule: androidx.lifecycle.viewmodel KMP artifact and its commonMain API
change between lifecycle versions — recheck libs.versions.toml before wiring.