This repo contains basic skeleton project for Android app using Gradle (plugin 0.12) and IntellijIdea. It has following features:
- Three different flavors
dev
- developers build for debugging (build it withassembleDevDebug
command)testLocal
- build to be tested by Q&A team. Create local keystore for it and build it withassembleTestLocalRelease
.prod
- build for production, uses keystore passed either as command line arguments (-p"app.keystore"=
....) or in gradle.properties file.
- Each flavor has different applicationId (result package name) so you can have all three app types installed simultaneously on device.
- Different icons for dev and release builds.
gen_icons.sh
script to generate launcher icons from SVG image using inkscape- Stub class CrashLogger to be used with crash reporting services (like Crashlytics, etc).
BuildConfig.REPORT_CRASHES
flag, determining whether log reports should be sent to service (value set totrue
inprod
flavor) or printed to Log (false
indev
). LogHelper
- taken from Google iosched app.Application
class, initializing logger and setting strict mode for dev build.- Proguard rule to keep your app classes and do not use obfuscation.
- Clone this repo
- Import project in IntellijIdea
- Change value of
applicationId
inapp/build.gradle
- Change package in
AndroidManifest.xml
- Rename package in source code