Skip to content

Simple application to check Bitcoin prices. Built as a learning exercise

Notifications You must be signed in to change notification settings

2bard/AndroidBTCPriceChecker

Folders and files

NameName
Last commit message
Last commit date
Mar 14, 2018
Mar 1, 2018
Mar 1, 2018
Mar 11, 2018
Mar 12, 2018
Mar 1, 2018
Mar 1, 2018
Mar 1, 2018
Mar 1, 2018
Mar 1, 2018

Repository files navigation

BTCPriceChecker

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.

Screenshot of BTCPriceChecker

Architecture

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.

Features

The app periodically queries the Coinbase API and returns the current Bitcoin value. Simple!

Testing

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.

TODO

  • Implement linting
  • Clean up messy layout files
  • Apply sample window to PriceResponse callbacks

About

Simple application to check Bitcoin prices. Built as a learning exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published