Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@umarhussain15
Created October 23, 2018 17:23
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 umarhussain15/d3b3dbf7e6824b9488858911e819a826 to your computer and use it in GitHub Desktop.
Save umarhussain15/d3b3dbf7e6824b9488858911e819a826 to your computer and use it in GitHub Desktop.
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