Core code to be reused in other Android apps. at GitHub
./gradlew
The build requires Maven
v3.0.3+ and the Android SDK
to be installed in your development environment. In addition you'll need to set
the ANDROID_HOME
environment variable to the location of your SDK:
export ANDROID_HOME=/home/roberto/tools/android-sdk
After satisfying those requirements, the build is pretty simple:
- Run
mvn clean cobertura:cobertura -P default -P cobertura; mvn sonar:sonar -P cobertura
to run the tests and create the code analysis for viewing in Sonar - Run
mvn clean install
to run the instrumented tests on the connected devices
Uses many great open-source libraries from the Android dev community:
Butterknife for View injections and NineOldAndroids for the back-ported Animation API Jake Wharton.
- Dagger for dependency-injection, Spoon for distributed integration tests, Retrofit for REST client, Otto for efficient EventBus and Fest-Android for Android-focused assertions. Square, Inc.
- Robolectric for Android JUnit testing.
- android-maven-plugin for automating our build and producing release-ready APKs.
- WizardPager for data entry wizard pager, QuickReturnBar for maximizing screen real estate, Done/Discard for editing/creating a resource, and UndoBar for canceling an action. Roman Nurik
- Project Structure thanks to Quality Tools for Android