Revert Gradle changes
This commit is contained in:
parent
db76b1adcf
commit
3f769e51e8
|
|
@ -59,21 +59,18 @@ afterEvaluate {
|
||||||
def variantNameLowered = variant.name.toLowerCase()
|
def variantNameLowered = variant.name.toLowerCase()
|
||||||
def myTemplatePath = "${projectDir}/template_override/"
|
def myTemplatePath = "${projectDir}/template_override/"
|
||||||
|
|
||||||
task "copyDex${variantNameCapped}" {
|
task("copyDex${variantNameCapped}", type: Copy) {
|
||||||
dependsOn "assemble${variantNameCapped}"
|
dependsOn "assemble${variantNameCapped}"
|
||||||
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
||||||
dependsOn tasks.getByPath(":sandhook-hooklib:copySandHook${variantNameCapped}LibraryToMagiskTemplate")
|
dependsOn tasks.getByPath(":sandhook-hooklib:copySandHook${variantNameCapped}LibraryToMagiskTemplate")
|
||||||
def dexOutPath = variant.name.contains("release") ?
|
def dexOutPath = variant.name.contains("release") ?
|
||||||
"${buildDir}/intermediates/dex/${variantNameLowered}/minify${variantNameCapped}WithR8" :
|
"${buildDir}/intermediates/dex/${variantNameLowered}/minify${variantNameCapped}WithR8" :
|
||||||
"${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}"
|
"${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}"
|
||||||
doLast {
|
from(dexOutPath) {
|
||||||
project.logger.lifecycle("copyDex${variantNameCapped}")
|
rename "classes.dex", "edxp.dex"
|
||||||
copy {
|
}
|
||||||
from(dexOutPath) {
|
destinationDir file(zipPathMagiskReleasePath + "system/framework/")
|
||||||
rename "classes.dex", "edxp.dex"
|
doLast {
|
||||||
}
|
|
||||||
into myTemplatePath + "system/framework/"
|
|
||||||
}
|
|
||||||
copy {
|
copy {
|
||||||
from file(myTemplatePath)
|
from file(myTemplatePath)
|
||||||
into file(zipPathMagiskReleasePath)
|
into file(zipPathMagiskReleasePath)
|
||||||
|
|
|
||||||
|
|
@ -57,23 +57,17 @@ afterEvaluate {
|
||||||
def variantNameCapped = variant.name.capitalize()
|
def variantNameCapped = variant.name.capitalize()
|
||||||
def variantNameLowered = variant.name.toLowerCase()
|
def variantNameLowered = variant.name.toLowerCase()
|
||||||
|
|
||||||
task "copyDex${variantNameCapped}" {
|
task("copyDex${variantNameCapped}", type: Copy) {
|
||||||
dependsOn "assemble${variantNameCapped}"
|
dependsOn "assemble${variantNameCapped}"
|
||||||
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
||||||
def dexOutPath = variant.name.contains("release") ?
|
def dexOutPath = variant.name.contains("release") ?
|
||||||
"${buildDir}/intermediates/dex/${variantNameLowered}/minify${variantNameCapped}WithR8" :
|
"${buildDir}/intermediates/dex/${variantNameLowered}/minify${variantNameCapped}WithR8" :
|
||||||
"${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}"
|
"${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}"
|
||||||
|
from (dexOutPath){
|
||||||
outputs.upToDateWhen { false }
|
rename("classes.dex", "edxp.dex")
|
||||||
doLast {
|
|
||||||
project.logger.lifecycle("copyDex${variantNameCapped}")
|
|
||||||
copy {
|
|
||||||
from (dexOutPath){
|
|
||||||
rename("classes.dex", "edxp.dex")
|
|
||||||
}
|
|
||||||
into file(zipPathMagiskReleasePath + "/system/framework/")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
destinationDir file(zipPathMagiskReleasePath + "system/framework/")
|
||||||
|
outputs.upToDateWhen { false }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue