Skip to content

Instantly share code, notes, and snippets.

@agrcrobles
Forked from mateoKaradza/build.gradle
Created October 16, 2017 20:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agrcrobles/4769c0cf70c8e44c50deab72068a9971 to your computer and use it in GitHub Desktop.
Save agrcrobles/4769c0cf70c8e44c50deab72068a9971 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