Skip to content

Commit b59425b

Browse files
authored
Merge pull request #3 from NormanWangEndeavor/fix/agp-8.13.0-build-error
fix: build error on AGP 8.13
2 parents 78b3821 + 3506d4a commit b59425b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

source/src/main/groovy/com/kezong/fataar/VariantProcessor.groovy

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,21 @@ final class VariantProcessor {
139139

140140
private void processDeepLinkTasks() {
141141
String taskName = "extractDeepLinksForAar${mVariant.name.capitalize()}"
142-
TaskProvider extractDeepLinks = mProject.tasks.named(taskName)
143-
if (extractDeepLinks == null) {
142+
TaskProvider extractDeepLinksForAar = mProject.tasks.named(taskName)
143+
if (extractDeepLinksForAar == null) {
144144
throw new RuntimeException("Can not find task ${taskName}!")
145145
}
146146

147-
extractDeepLinks.configure {
147+
extractDeepLinksForAar.configure {
148148
dependsOn(mExplodeTasks)
149149
}
150+
151+
TaskProvider extractDeepLinks = mProject.tasks.named("extractDeepLinks${mVariant.name.capitalize()}")
152+
if (extractDeepLinks != null) {
153+
extractDeepLinks.configure {
154+
dependsOn(mExplodeTasks)
155+
}
156+
}
150157
}
151158

152159
/**

0 commit comments

Comments
 (0)