Last active
October 27, 2015 13:41
-
-
Save brescia123/fc5c01f03761f7d70268 to your computer and use it in GitHub Desktop.
Configuration to generate a signed apk from the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember to set the two env variables ANDROID_KEYSTORE and ANDROID_KEYALIAS