Skip to content

Instantly share code, notes, and snippets.

@willblaschko
Last active May 5, 2016 16:11
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 willblaschko/8b108e1208dbe52eca69693c393d6e22 to your computer and use it in GitHub Desktop.
Save willblaschko/8b108e1208dbe52eca69693c393d6e22 to your computer and use it in GitHub Desktop.
Signing config
if (file('signing.gradle').exists()) {
apply from: 'signing.gradle'
}
android{
...
buildTypes {
debug{
versionNameSuffix " Debug"
minifyEnabled false
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseConfig
}
release {
minifyEnabled false
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseConfig
}
}
...
}
...
android {
signingConfigs {
releaseConfig {
storeFile file(".../path/to/keystore")
storePassword 'STOREPASS'
keyAlias "KEYALIAS"
keyPassword 'KEYPASS'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment