I was looking for a simple application to write as my first Kotlin Android app. I decided on a currency checker and found the simple Coinbase API, all I needed to get started.
I have implemented a simple MVVM pattern. For handling configuration changes I'm using a retained fragment. I avoided using the Android Architecture components as I wanted to keep things simple and not write too much boilerplate.
The app periodically queries the Coinbase API and returns the current Bitcoin value. Simple!
I've included a couple of instrumentation tests powered by MockWebServer, Dagger 2, Espresso, and Spoon. I've also included an example of a classic unit test using Robolectric.
- Implement linting
- Clean up messy layout files
- Apply sample window to PriceResponse callbacks