Skip to content

Instantly share code, notes, and snippets.

@IvanShafran
Last active June 25, 2019 13:15
Show Gist options
  • Save IvanShafran/15ae108e2bc8f0bea2e87bb4c7a0be0a to your computer and use it in GitHub Desktop.
Save IvanShafran/15ae108e2bc8f0bea2e87bb4c7a0be0a to your computer and use it in GitHub Desktop.
def propertiesFilename = "production.properties"
if (!project.file(propertiesFilename).exists()) {
propertiesFilename = "contributors.properties"
}
def signingProperties = new Properties()
signingProperties.load(new FileInputStream(file(propertiesFilename)))
android {
signingConfigs {
release {
keyAlias signingProperties.releaseSignKeyAlias
keyPassword signingProperties.releaseSignKeyPassword
storeFile file(signingProperties.releaseStoreFilePath)
storePassword signingProperties.releaseStorePassword
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment