Skip to content

Instantly share code, notes, and snippets.

@umarhussain15
Created October 23, 2018 17:30
Show Gist options
  • Save umarhussain15/d061a0cc2d3f7c300f1d1b9bd3705b99 to your computer and use it in GitHub Desktop.
Save umarhussain15/d061a0cc2d3f7c300f1d1b9bd3705b99 to your computer and use it in GitHub Desktop.
app gradle file using environment variables.
android {
signingConfigs {
release {
storeFile = file(System.getenv('KEYSTORE_FILE_NAME'))
storePassword = System.getenv('KEYSTORE_PASSWORD')
keyAlias = System.getenv('KEYSTORE_ALIAS_NAME')
keyPassword = System.getenv('KEYSTORE_KEY_PASSWORD')
}
debug {
storeFile = file(System.getenv('KEYSTORE_FILE_NAME'))
storePassword = System.getenv('KEYSTORE_PASSWORD')
keyAlias = System.getenv('KEYSTORE_ALIAS_NAME')
keyPassword = System.getenv('KEYSTORE_KEY_PASSWORD')
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment