Battery Alarm
A low-battery alarm for Android, and an open-source case study in making Android integration testable without complicating a small app.
- Architecture
- Two Gradle modules:
:appdepends on an Android-free Kotlin:domain. - Decisions
- Platform adapters stay in the app; the domain owns alarm state and serialized transitions.
- Tests & CI
- JVM test suites run in GitHub Actions; device tests cover additional Android scenarios.