Skip to content

Instantly share code, notes, and snippets.

@nisrulz
Created April 5, 2015 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nisrulz/bdb8444a57f82c3cc61f to your computer and use it in GitHub Desktop.
Save nisrulz/bdb8444a57f82c3cc61f to your computer and use it in GitHub Desktop.
Android : Prompt for signing when building for release
signingConfigs {
release {
storeFile file(System.console().readLine("\n\$ Enter keystore path: "))
storePassword new String(System.console().readPassword("\n\$ Enter keystore password: "))
keyAlias System.console().readLine("\n\$ Enter key alias: ")
keyPassword new String(System.console().readPassword("\n\$ Enter key password: "))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment