Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample app gradle file signing config
android {
signingConfigs {
release {
storeFile = file('release.keystore')
storePassword = 'actualReleasePassword'
keyAlias = 'keyAliasName'
keyPassword = 'actualReleaseKeyPassword'
}
debug {
storeFile = file('debug.keystore')
storePassword = 'actualDebugPassword'
keyAlias = 'keyAliasName'
keyPassword = 'actualDebugKeyPassword'
}
}
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "xyz.umarhussain.app"
minSdkVersion 21
targetSdkVersion 27
versionCode 18
versionName "1.0.9"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
resConfigs "en"
}
buildTypes {
debug {
debuggable true
useProguard true
applicationIdSuffix '.debug'
signingConfig signingConfigs.debug
}
release {
debuggable false
shrinkResources true
minifyEnabled true
useProguard true
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