/android-base

kick-start your next Android app

Primary LanguageKotlin

Android app skeleton

Continuous integration

  • Travis CI Build Status
  • Circle CI Build Status
  • Codecov codecov

Prerequisites

Updating secret keys

  1. Decrypt file:
openssl aes-256-cbc -d -md sha256 -nosalt -a -pass pass:{KEY} -in secrets/keys.properties.crypted > temp.properties
  1. Add/remove keys inside temp.properties
  2. Encrypt temp.properties back
openssl aes-256-cbc -e -md sha256 -nosalt -a -pass pass:{KEY} -in temp.properties -out ./secrets/keys.properties.crypted
  1. Clean up: rm temp.properties.

What's included:

Setup

  1. 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

  2. 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 git@github.com:[MY-GITHUB-ACCOUNT]/[MY-NEW-PROJECT].git git push -u origin master

  3. Import the project into your favourite IDE. Just select the root build.gradle and your IDE will do the rest.

Configuration

Deploying to Fabric

  1. Increase app version & build number.
  2. Commit changes.
  3. Create git tag.
  4. git push && git push --tags
  5. Wait until https://circleci.com finish build.
  6. Open crashlytics application on Android device
  7. Find Android Base app, click on it and click "Update".