Skip to content

Instantly share code, notes, and snippets.

@mbelsky
Created June 25, 2015 08:18
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 mbelsky/454fb930ae0bf8988167 to your computer and use it in GitHub Desktop.
Save mbelsky/454fb930ae0bf8988167 to your computer and use it in GitHub Desktop.
Snippet to custom keystore file for release apk file.
/**
* Create your key store: keytool -genkey -v -keystore release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
* and after update your build.gradle file.
*/
android {
signingConfigs {
release {
storeFile file("release.keystore")
storePassword "******"
keyAlias "******"
keyPassword "******"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment