Skip to content

Instantly share code, notes, and snippets.

@brescia123
Last active October 27, 2015 13:41
Show Gist options
  • Save brescia123/fc5c01f03761f7d70268 to your computer and use it in GitHub Desktop.
Save brescia123/fc5c01f03761f7d70268 to your computer and use it in GitHub Desktop.
Configuration to generate a signed apk from the command line
signingConfigs {
releaseSigning {
storeFile file(System.getenv("ANDROID_KEYSTORE"))
storePassword System.console().readPassword("\nStore password: ").toString()
keyAlias System.getenv("ANDROID_KEYALIAS")
keyPassword System.console().readPassword("Key password: ").toString()
}
}
buildTypes {
release {
signingConfig signingConfigs.releaseSigning
}
}
@brescia123
Copy link
Author

Remember to set the two env variables ANDROID_KEYSTORE and ANDROID_KEYALIAS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment