Skip to content

Instantly share code, notes, and snippets.

@benvium
Last active August 29, 2015 14:05
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 benvium/36a567b8acdb3edfe1f5 to your computer and use it in GitHub Desktop.
Save benvium/36a567b8acdb3edfe1f5 to your computer and use it in GitHub Desktop.
add signing using keystore file to an android build.gradle file
android {
compileSdkVersion ...
.....
// Note this section MUST appear before 'buildTypes' in the build.gradle file.
signingConfigs {
release {
storeFile file("filename.keystore")
storePassword "password"
keyAlias "alias"
keyPassword "password"
}
}
buildTypes {
release {
....
signingConfig signingConfigs.release
}
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment