Giphy RecyclerView Grid Example using Dagger 2, Retrofit 2, RxJava 2 and Butterknife with Junit + Espresso tests
- burrows-apps-giphy-example - Root module
- src
- androidTest - UI Tests
- main - Source Code
- test - Unit Tests
- src
Separate Downloads:
- Download Java
- Download Gradle (Run
gradlew
to utilize the projectGradle
version) - Download the Android SDK
- Download Android Studio(based on Intellij)
Bundled Download(includes all of the above except for Git
):
Make sure you have your local.properties
file in top level project folder. For the Android-SDK manager.
Windows:
sdk.dir=C\:\\Users\\<user>\\android-sdk
Linux/Mac OSX:
sdk.dir=/Users/<user>/android-sdk
This project builds with Gradle and the Android Build tools.
Building:
Assemble the .apk
:
$ gradlew assembleDebug
Installing:
Assemble and Install the .apk
:
$ gradlew installDebug
Running The App:
Assemble, Install and Run the .apk
:
$ gradlew runDebug
Running the Unit Tests (debug):
The Junit/Robolectric tests run on the JVM, no need for emulators or real devices.
$ gradlew testDebug
Running the Instrumentation Tests:
The Espresso instrumentation tests run on the device.
$ gradlew connectedDebugAndroidTest
Generate Lint Reports (debug):
The Lint plugin generates reports based off the source code.
$ gradlew lintDebug
Generate Jacoco Test Coverage:
The Jacoco plugin generates coverage reports based off the unit tests.
$ gradlew testDebug jacocoDebugReport
Count Dex Methods:
Assemble and Count the Dex Methods the .apk
:
$ gradlew countDebugDexMethods
Size of the APK:
Assemble and get the Size of the .apk
:
$ gradlew sizeDebugApk
Dependency Updates:
Check for Dependency and Plugin Updates:
$ gradlew dependencyUpdates