Skip to content

Commit

Permalink
fix: 'tooling-api-impl:copyJarToAssets' is not declared as dependency…
Browse files Browse the repository at this point in the history
… of :app tasks
  • Loading branch information
itsaky committed Mar 15, 2023
1 parent deeba5a commit 9ef92d5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ android {
kapt { arguments { arg("eventBusIndex", "com.itsaky.androidide.events.AppEventsIndex") } }

dependencies {

debugImplementation(libs.common.leakcanary)

// Annotation processors
Expand Down Expand Up @@ -188,8 +187,15 @@ fun getEnvOrProp(key: String): String? {
}

afterEvaluate {
tasks.getByName("mergeDebugAssets").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
tasks.getByName("mergeReleaseAssets").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
tasks.getByName("lintAnalyzeDebug").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
tasks.getByName("lintAnalyzeRelease").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
}
val dependents =
listOf(
"mergeDebugAssets",
"mergeReleaseAssets",
"lintAnalyzeDebug",
"lintAnalyzeRelease",
"lintVitalAnalyzeRelease"
)
for (dependent in dependents) {
tasks.getByName(dependent).dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
}
}

0 comments on commit 9ef92d5

Please sign in to comment.