fix: compiler error

pull/1662/head
Alfayed Baksh 9 months ago
parent 8b199c134d
commit c4cb8bc407

@ -89,10 +89,11 @@ internal fun Project.configureJacoco(
} }
// Collect all java and kotlin source directories from the variant's source sets // Collect all java and kotlin source directories from the variant's source sets
val sourceDirs = variant.sources // val sourceDirs =
.map { it.java.srcDirs + it.kotlin.srcDirs } sourceDirectories.setFrom(
.flatten() variant.sources.kotlin?.all?.get(),
sourceDirectories.setFrom(sourceDirs) variant.sources.java?.all?.get()
)
executionData.setFrom( executionData.setFrom(
project.fileTree("$buildDir/outputs/unit_test_code_coverage/${variant.name}UnitTest") project.fileTree("$buildDir/outputs/unit_test_code_coverage/${variant.name}UnitTest")

Loading…
Cancel
Save