Skip to content

Instantly share code, notes, and snippets.

@mateoKaradza
Last active October 16, 2017 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mateoKaradza/e228e42420fd00c8295ac9d7b38c9355 to your computer and use it in GitHub Desktop.
Save mateoKaradza/e228e42420fd00c8295ac9d7b38c9355 to your computer and use it in GitHub Desktop.
Example of signingConfigs within build.gradle file
signingConfigs {
release {
if (System.getenv()["CI"]) { // CI is true when running build on CI service, such as Bitrise
storeFile file(System.getenv()["BITRISE_SOURCE_DIR"] + "/keystores/my_keystore.jks")
storePassword System.getenv()["BITRISEIO_ANDROID_KEYSTORE_PASSWORD"]
keyAlias System.getenv()["BITRISEIO_ANDROID_KEYSTORE_ALIAS"]
keyPassword System.getenv()["BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD"]
} else {
storeFile file("release.keystore")
storePassword "Password123"
keyAlias "app_release"
keyPassword "Password123"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment