Skip to content

Instantly share code, notes, and snippets.

@umarhussain15
Created October 23, 2018 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umarhussain15/8a727fd33a49dba10889ebe6e2172de5 to your computer and use it in GitHub Desktop.
Save umarhussain15/8a727fd33a49dba10889ebe6e2172de5 to your computer and use it in GitHub Desktop.
gradle script using global properties in signing config
// ...
android {
signingConfigs {
release {
if (project.hasProperty('RELEASE_STORE_FILE')) {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
debug {
if (project.hasProperty('DEBUG_STORE_FILE')) {
storeFile file(DEBUG_STORE_FILE)
storePassword DEBUG_STORE_PASSWORD
keyAlias DEBUG_KEY_ALIAS
keyPassword DEBUG_KEY_PASSWORD
}
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment