Skip to content

Instantly share code, notes, and snippets.

@shekibobo
Last active April 22, 2019 15:22
Show Gist options
  • Save shekibobo/cb10f2d2c00fd8759032433894496a3f to your computer and use it in GitHub Desktop.
Save shekibobo/cb10f2d2c00fd8759032433894496a3f to your computer and use it in GitHub Desktop.
Load signing configs from secret keystore file for gradle build.
signingConfigs {
debug {
storeFile rootProject.file("signing/debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
release {
def keystoreProperties = propertiesFrom("signing/keystore.properties")
if (!keystoreProperties.isEmpty()) {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment