A simple boilerplate application which demonstrates the downloading, persisting and syncing of data - displayed with a common layout used amongst applications. It features the use of the Design Support library, data caching and the new Test Modules, separating the functional tests from production code.
The project is setup using:
- Functional test Module with Espresso
- Unit tests with Robolectric
- RxJava and RxAndroid
- Retrofit and OkHttp
- Dagger 2
- SqlBrite
- EasyAdapter
- Butterknife
- [Timber] (https://github.com/JakeWharton/timber)
- Mockito
- Glide
- Android SDK.
- Android 5.1 (API 22) .
- Android SDK Tools
- Android SDK Build tools 23.0.0.0 rc3
- Android Support Repository
- Android Support library
To build, install and run a debug version, run this from the root of the project:
./gradlew installRunDebug
For Android Studio to use syntax highlighting for Automated tests and Unit tests you must switch the Build Variant to the desired mode.
To run unit tests on your machine using [Robolectric] (http://robolectric.org/):
./gradlew testDebug
To run automated tests on connected devices:
./gradlew connectedAndroidTest
Thanks to the following for contributions!
[ivacf] (https://github.com/ivacf)
[Jawnnypoo] (https://github.com/Jawnnypoo)