File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ plugins.withId('com.android.application') {
119119 // .join('\n')
120120
121121 def currentVariants = extractCurrentVariants(bundleTask, v)
122- if (currentVariants == null ) return
122+ if (currentVariants == null || currentVariants . isEmpty() ) return
123123
124124 def previousCliTask = null
125125 def applicationVariant = null
@@ -328,9 +328,10 @@ plugins.withId('com.android.application') {
328328 previousCliTask. configure { finalizedBy cliCleanUpTask }
329329
330330 def packageTasks = tasks. matching {
331- task -> (" package${ applicationVariant} " . equalsIgnoreCase(task. name) || " package${ applicationVariant} Bundle" . equalsIgnoreCase(task. name)) && task . enabled
331+ task -> (" package${ applicationVariant} " . equalsIgnoreCase(task. name) || " package${ applicationVariant} Bundle" . equalsIgnoreCase(task. name))
332332 }
333333 packageTasks. configureEach { packageTask ->
334+ if (! packageTask. enabled) return
334335 packageTask. dependsOn modulesTask
335336 packageTask. finalizedBy modulesCleanUpTask
336337 }
You can’t perform that action at this time.
0 commit comments