This project will help you quickly start developing a new android app
git clone --depth 1 git://github.com/fs/android-base.git --origin android-base [NEW-PROJECT-NAME]
cd [NEW-PROJECT-NAME]
git remote add origin https://github.com/[NEW-PROJECT-GITHUB-ACCOUNT]/[NEW-PROJECT-NAME].git
git push -u origin master
- Update
APPLICATION_ID
inapp/build.gradle
. - Rename package under
app/src/main/java
. - Remove current and Credits sections from
README.MD
.
- Download latest Android Studio from https://developer.android.com/studio/index.html
- Follow Android Studio installation instruction.
- Download and install latest JDK8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.
- Open Android Studio - Open Existing Android Project - find folder with project and click
OK
- Wait a while. Follow Android Studio instructions to install missing items.
- Press
cmd + shift + a
and typeAVD Manager
and press Enter. - Press
Create Virtual Device...
button. - Select
Nexus 5X
- Select latest API level (in case if latest is not available then click
Download
and wait, it's going to take a while). - Click
Next
- Click
Finish
- Decrypt file:
openssl aes-256-cbc -d -md sha256 -nosalt -a -pass pass:{KEY} -in secrets/keys.properties.crypted > temp.properties
- Add/remove keys inside
temp.properties
- Encrypt temp.properties back
openssl aes-256-cbc -e -md sha256 -nosalt -a -pass pass:{KEY} -in temp.properties -out ./secrets/keys.properties.crypted
- Clean up:
rm temp.properties
.
After you complete the Gradle
project configuration, you can use gradlew
executable to build the APK:
$ ./gradlew assembleDebug // to build a debug APK
$ ./gradlew assembleRelease // to build a release signed APK, can upload to Market
To install app on emulator or connected real device:
$ ./gradlew installDebug
Module build.gradle:
defaultConfig {
...
oneClickPublish {
branchNames = ["master"] // branch names from which you can deploy, master by default
remoteRepoName = "origin" // alias repository, origin by default
}
...
}
- To promote a new version run:
$ ./gradlew deployMajorVersion // increase major number
$ ./gradlew deployMinorVersion // increase minor number
$ ./gradlew deployPatchVersion // increase patch number
- Wait until https://circleci.com finish build.
- Open crashlytics application on Android device
- Find Android Base app, click on it and click "Update".
$ ./gradlew test
Project already has proguard config for included libraries.
Maintain proguard-rules.pro updated when you add new libraries or play with reflection.
When you add new library or check out its Proguard section and add rules to proguard-rules.pro
.
When you add code which uses reflection add rules to proguard-rules.pro
.
Android base app is maintained by Flatstack. List of contributors