8000 Fix build plugins · JUST-INTJ/fcitx5-android@4bf7ed3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4bf7ed3

Browse files
committed
Fix build plugins
1 parent ebbff8b commit 4bf7ed3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-logic/convention/src/main/kotlin/AndroidAppConventionPlugin.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ class AndroidAppConventionPlugin : AndroidBaseConventionPlugin() {
134134
// Since we are using finalizeDsl, there is no need to do afterEvaluate
135135
finalizeDsl {
136136
target.tasks.findByName(DataDescriptorPlugin.TASK)?.also { dataDescriptorTask ->
137-
FcitxComponentPlugin.DEPENDENT_TASKS.forEach { componentTask ->
138-
dataDescriptorTask.dependsOn(componentTask)
139-
}
137+
FcitxComponentPlugin.DEPENDENT_TASKS
138+
.mapNotNull { taskName -> target.tasks.findByName(taskName) }
139+
.forEach { componentTask -> dataDescriptorTask.dependsOn(componentTask) }
140140
}
141141
// applicationId is not set upon apply
142142
it.defaultConfig {

0 commit comments

Comments
 (0)
0