Created
October 23, 2018 17:23
-
-
Save umarhussain15/d3b3dbf7e6824b9488858911e819a826 to your computer and use it in GitHub Desktop.
Sample app gradle file signing config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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