- Android Studio 3.x
- JDK 8
- Android SDK
- 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
.
- Staging and Production build flavors with different package names (read more)
- Android Lint configuration
- Travis CI and CircleCI build script1 script2:
- Downloading an Android SDK
- Building
- Running Android Lint
- Hook up your continuous deployment target in
after_success
for travis and in 'deployment' for CircleCi
- Release build signing and naming configuration
-
Clone application as new project with original remote named "android-base"
git clone --depth 1 git://github.com/fs/android-base.git --origin android-base [MY-NEW-PROJECT]
Note: we use depth parameter here in order to not copy the history of changes in base project
-
Create your new repository on the GitHub and push master into it. Make sure master branch is tracking origin repo.
cd [MY-NEW-PROJECT] git remote add origin [email protected]:[MY-GITHUB-ACCOUNT]/[MY-NEW-PROJECT].git git push -u origin master
-
Import the project into your favourite IDE. Just select the root
build.gradle
and your IDE will do the rest.
- Change your app's package by either renaming the folder structure for Java sources or by just changing this constant in
build.gradle
- Increase app version & build number.
- Commit changes.
- Create git tag.
git push && git push --tags
- Wait until https://circleci.com finish build.
- Open crashlytics application on Android device
- Find Android Base app, click on it and click "Update".