Skip to content

Instantly share code, notes, and snippets.

@goforgold
Last active July 24, 2017 06:27
Show Gist options
  • Save goforgold/6130e41bdfb98eab2d894e4d17d87fb1 to your computer and use it in GitHub Desktop.
Save goforgold/6130e41bdfb98eab2d894e4d17d87fb1 to your computer and use it in GitHub Desktop.
Gradle Build Config for Creating Signed and Aligned APK
android {
signingConfigs {
release {
keyAlias 'KEY_ALIAS'
keyPassword 'KEY_PASS'
storeFile file('PATH_TO_KEY.jks')
storePassword 'STORE_PASS'
}
}
compileSdkVersion 25
buildToolsVersion "25.0.3"
..
..
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment