Minify all variant builds
This commit is contained in:
parent
bc8b2bc16b
commit
ee0995528a
|
|
@ -13,7 +13,7 @@ android {
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -58,7 +58,7 @@ afterEvaluate {
|
||||||
|
|
||||||
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
||||||
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
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/")
|
destinationDir file(myTemplatePath + "system/framework/")
|
||||||
baseName "edxp"
|
baseName "edxp"
|
||||||
doLast {
|
doLast {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ android {
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -56,7 +56,7 @@ afterEvaluate {
|
||||||
|
|
||||||
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
||||||
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
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/")
|
destinationDir file(myTemplatePath + "system/framework/")
|
||||||
baseName "edxp"
|
baseName "edxp"
|
||||||
doLast {
|
doLast {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue