Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libs/codes/kikcode/build.gradle.kts
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,6 +68,12 @@ val generateTestFixtures = tasks.register<GenerateTestFixtures>("generateTestFix
outputDirectory.set(layout.buildDirectory.dir("generated/testFixtures"))
}

// `srcDir(taskProvider)` below carries the task dependency to the Kotlin compile tasks only; AGP's
// lint tasks read the same source directories straight off disk, so Gradle fails the build over an
// undeclared dependency on the generated fixtures. Wire it up by hand.
tasks.matching { it.name.startsWith("lint") || it.name.endsWith("LintModel") }
.configureEach { dependsOn(generateTestFixtures) }

kotlin {
android {
namespace = "com.getcode.codes.kikcode"
Expand Down
Loading