Try to fix build
This commit is contained in:
parent
fae21cbdf3
commit
ad4fa9c500
1 changed files with 4 additions and 2 deletions
|
@ -362,7 +362,8 @@ task collectExternalResources {
|
|||
updateNoTranslate,
|
||||
validateTranslate,
|
||||
copyWidgetIcons,
|
||||
downloadWorldMiniBasemap
|
||||
downloadWorldMiniBasemap,
|
||||
downloadPrebuiltHuaweiDrm
|
||||
}
|
||||
|
||||
// Legacy core build
|
||||
|
@ -410,6 +411,8 @@ task cleanupDuplicatesInCore() {
|
|||
}
|
||||
afterEvaluate {
|
||||
android.applicationVariants.all { variant ->
|
||||
variant.javaCompiler.dependsOn(collectExternalResources, buildOsmAndCore, cleanupDuplicatesInCore)
|
||||
|
||||
// Use Drm strings only for huawei flavor
|
||||
if ("huawei" == variant.productFlavors[0].name) {
|
||||
variant.javaCompiler.dependsOn downloadPrebuiltHuaweiDrm
|
||||
|
@ -418,7 +421,6 @@ afterEvaluate {
|
|||
variant.javaCompiler.dependsOn cleanPrebuiltHuaweiDrm
|
||||
variant.preBuild.dependsOn cleanPrebuiltHuaweiDrm
|
||||
}
|
||||
variant.javaCompiler.dependsOn(downloadPrebuiltHuaweiDrm, collectExternalResources, buildOsmAndCore, cleanupDuplicatesInCore)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue