Fix sandhook build

This commit is contained in:
LoveSy 2020-11-28 00:48:35 +08:00 committed by 双草酸酯
parent a8b24f555f
commit 2c709e4c65
2 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,7 @@ afterEvaluate {
def variantNameCapped = variant.name.capitalize()
def variantNameLowered = variant.name.toLowerCase()
def myTemplatePath = "${projectDir}/template_override/"
task("copyDex${variantNameCapped}", type: Copy) {
dependsOn "assemble${variantNameCapped}"
@ -67,6 +68,12 @@ afterEvaluate {
}
destinationDir file(templateRootPath + "system/framework/")
outputs.upToDateWhen { false }
doLast {
copy {
from file(myTemplatePath)
into file(templateRootPath)
}
}
}
}