Skip to content

Repository files navigation

Android Template

A repository template to create new Android Kotlin apps!

Build Android 8.0+ Kotlin

Get it on Obtainium Download APK


Click the button. Use this template

Setup. Code or ask to code. Do whatever you want.

Keystore

To sign your APK, create a keystore. Keep it safe.

keytool -genkeypair -v -keystore release.jks -alias ${APP_NAME} -keyalg EC -groupname secp256r1 -sigalg SHA256withECDSA -validity 10000

You can upload it to GitHub Actions as Secret ANDROID_KEYSTORE_BASE64 to generate Release APKs.

base64 -w 0 release.jks ; echo

Then define ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_PASSWORD (default is the same), and ANDROID_KEY_ALIAS as configured.

Google Play Publishing

To automatically publish releases to Google Play, configure a service account JSON key.

  1. In Google Play Console, go to Setup → API access and link a Google Cloud project.
  2. Create a service account with the Release manager (or Releases submitter) role.
  3. Download the JSON key file for that service account.
  4. Encode the contents and add them as a GitHub Actions secret named GOOGLE_PLAY_JSON_KEY:
cat google-play-key.json | base64 -w 0 ; echo

Requires also to update the release.yml Workflow and enable BUILD_AAB (disabled by default). The release workflow will automatically publish the AAB to the internal track after a successful build. The track can be changed in fastlane/Fastfile (publish lane, track option).

About

Repo template to initialize an Android project with automations.

Topics

Resources

Stars

Watchers

Forks

Used by

Contributors

Languages