Minify all variant builds

This commit is contained in:
solohsu 2019-04-23 00:18:28 +08:00
parent bc8b2bc16b
commit ee0995528a
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ android {
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
@ -58,7 +58,7 @@ afterEvaluate {
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
from "${buildDir}/intermediates/transforms/dexMerger/${variantNameLowered}/0/"
destinationDir file(myTemplatePath + "system/framework/")
baseName "edxp"
doLast {

View File

@ -13,7 +13,7 @@ android {
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
@ -56,7 +56,7 @@ afterEvaluate {
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
from "${buildDir}/intermediates/transforms/dexMerger/${variantNameLowered}/0/"
destinationDir file(myTemplatePath + "system/framework/")
baseName "edxp"
doLast {