Skip to content

Instantly share code, notes, and snippets.

@oksep
Created October 8, 2015 01:58
Show Gist options
  • Save oksep/106f67be34bc6243eb59 to your computer and use it in GitHub Desktop.
Save oksep/106f67be34bc6243eb59 to your computer and use it in GitHub Desktop.
Custom signingConfigs from file
signingConfigs {
debug {
// No debug config
}
release {
def filePrivateProperties = file("../releaseSigningConfig.properties")
if (filePrivateProperties.exists()) {
Properties propsPrivate = new Properties()
propsPrivate.load(new FileInputStream(filePrivateProperties))
storeFile file(propsPrivate['key.store'])
keyAlias propsPrivate['key.alias']
storePassword propsPrivate['key.store.password']
keyPassword propsPrivate['key.alias.password']
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment