Home

Awesome

Android Gradle Java App Template

License build Twitter Follow

Gradle + Android Studio + Robolectric + Espresso + Mockito

Technologies used:

Build Tools:

NameDescription
GradleGradle build system
Android Gradle Build ToolsOfficial Gradle Plugin
Android SDKOfficial SDK
Android SDK Build ToolsOfficial Build Tools
Android Studio orOfficial IDE
IntellijIntellij IDE

Testing Frameworks:

NameDescription
EspressoInstrumentation Framework
RobolectricUnit Testing Framework

Publishing to Google Play:

NameDescription
Gradle-play-publisherPublishes your app to Google Play

Getting Started:

Android Studio or Intellij Support(Simple):

Building and Running

This project builds with Gradle and the Android Build tools.

Build the APK:

gradlew assembleDebug

Install the APK:

gradlew installDebug

Testing

Running the Unit Tests:

The Junit and Robolectric tests run on the JVM, no need for emulators or real devices.

gradlew testDebug

Run a single unit test in the debug flavor:

gradlew testDebug --tests="*MainActivityTest*"

Running the Instrumentation Tests:

The Espresso instrumentation tests run on the device.

gradlew connectedDebugAndroidTest

Reports

Generate Lint Reports:

The Lint plugin generates reports based off the source code.

gradlew lintDebug

License

Copyright (C) 2015 Jared Burrows

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.