2023-03-09 03:32:31 -08:00
|
|
|
pluginManager.withPlugin("org.jetbrains.kotlinx.kover") {
|
|
|
|
extensions.findByType<kotlinx.kover.gradle.plugin.dsl.KoverProjectExtension>()?.apply {
|
2023-09-22 05:30:29 -07:00
|
|
|
if (!project.property("IS_KOTLIN_TEST_COVERAGE_ENABLED").toString().toBoolean()) {
|
|
|
|
disable()
|
|
|
|
}
|
2023-03-09 03:32:31 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
extensions.findByType<kotlinx.kover.gradle.plugin.dsl.KoverReportExtension>()?.apply {
|
2023-09-22 05:30:29 -07:00
|
|
|
defaults {
|
|
|
|
html {
|
|
|
|
onCheck = true
|
|
|
|
setReportDir(layout.buildDirectory.dir("kover/html"))
|
|
|
|
}
|
|
|
|
xml {
|
|
|
|
onCheck = true
|
|
|
|
setReportFile(layout.buildDirectory.file("kover/xml/report.xml"))
|
|
|
|
}
|
2023-03-09 03:32:31 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|