8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebbff8b commit 4bf7ed3Copy full SHA for 4bf7ed3
build-logic/convention/src/main/kotlin/AndroidAppConventionPlugin.kt
@@ -134,9 +134,9 @@ class AndroidAppConventionPlugin : AndroidBaseConventionPlugin() {
134
// Since we are using finalizeDsl, there is no need to do afterEvaluate
135
finalizeDsl {
136
target.tasks.findByName(DataDescriptorPlugin.TASK)?.also { dataDescriptorTask ->
137
- FcitxComponentPlugin.DEPENDENT_TASKS.forEach { componentTask ->
138
- dataDescriptorTask.dependsOn(componentTask)
139
- }
+ FcitxComponentPlugin.DEPENDENT_TASKS
+ .mapNotNull { taskName -> target.tasks.findByName(taskName) }
+ .forEach { componentTask -> dataDescriptorTask.dependsOn(componentTask) }
140
}
141
// applicationId is not set upon apply
142
it.defaultConfig {
0 commit comments