Skip to content

Instantly share code, notes, and snippets.

@nontravis
Created April 18, 2018 15:32
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 nontravis/9342172c6c1a22f53877c7a325e91282 to your computer and use it in GitHub Desktop.
Save nontravis/9342172c6c1a22f53877c7a325e91282 to your computer and use it in GitHub Desktop.
build.gradle
apply plugin: 'com.android.application'
apply from: "$project.rootDir/tools/applyCommon.gradle"
apply from: "$project.rootDir/tools/improveSpeed.gradle"
android {
...
signingConfigs {
release {
storeFile file(KEYSTORE_FILE)
storePassword KEYSTORE_PASSWORD
keyAlias KEYSTORE_ALIAS
keyPassword KEYSTORE_PASSWORD
}
debug {
keyAlias 'androiddebugkey'
storePassword 'android'
keyPassword 'android'
}
}
buildTypes {
release {
minifyEnabled true
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'),
"$project.rootDir/tools/rules-proguard.pro"
}
debug {
versionNameSuffix " Debug"
applicationIdSuffix ".debug"
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'),
"$project.rootDir/tools/rules-proguard-debug.pro"
}
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment