kanawish/android-mvi-sample — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Android sample app in Kotlin that demonstrates the Model View Intent pattern in a practical way. I want it to feel like a simple tasks app, with a task list and a task editor, but the main goal is to make the app a clear working example of one way data flow.

Please structure it so user actions become intents, intents go through reducers, and the screen updates from a single state model. Include a generic model store inspired by Redux, a clean intent and reducer setup, and a sealed state machine for the task editor so it’s easy to learn from.

Keep the project lightweight and readable. Use Kotlin with RxJava 2, RxBindings, RxRelay, Retrofit, and Toothpick DI since this is meant to show a reactive Android MVI style. Add enough comments or simple naming so another developer can understand the flow without digging too much. Look up current Android docs online if you need to.

Want more depth? Deep Reverse