MidMoney
A market tracker written for its architecture
- Year
- 2026
- Platform
- Android
A native Android market-tracking app built on the Finnhub API: a filtered stock list, symbol search, a detail screen with live WebSocket pricing, company news and a locally persisted watchlist. The app is intentionally small; the architecture is the point: 22 Gradle modules across feature, plugin and library layers, wired by convention plugins, with a single quality gate over all of it.
Technologies
- Kotlin
- Jetpack Compose
- Navigation 3
- Hilt
- Coroutines & Flow
- Retrofit
- OkHttp WebSocket
- DataStore
- Firebase
- 22 Gradle modules
- Convention plugins
- Live WebSocket pricing
Screenshots
Architecture
- Dependencies point feature → plugin → library. Features never see each other and libraries never see plugins.
- A feature talks to a plugin only through its client facade, never to a repository directly.
- Convention plugins are the single source of build configuration, so all 22 modules build by the same rules.
Key decisions
- MVI by delegation rather than inheritance: a ViewModel gets state, actions and effects without a base class.
- State is a StateFlow and one-shot effects are a Channel, so a toast never fires twice after a configuration change.
- Navigation is a command bus: a ViewModel names the destination and no NavController leaks into it.
- Errors are classified once, in the data layer; a ViewModel never inspects a Throwable.
Quality
- 68 unit tests: every feature ViewModel, the error handler and analytics routing.
- 9 end-to-end Maestro flows.
- detekt treats warnings as errors with no baseline file; ktlint handles formatting.
- GitHub Actions on every push and pull request: ktlint, detekt, tests, assemble.