Subject: [PATCH] Fixes for Kover 0.7.2 --- Index: CCC.gradle.kts IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/CCC.gradle.kts b/CCC.gradle.kts --- a/CCC.gradle.kts (revision 74f2bc7c88ae718d352339da40780045d5a3a7a6) +++ b/CCC.gradle.kts (revision cca9787856172066242930d0ae84f3665d8ea7b6) @@ -33,21 +33,27 @@ group = ProjectSettings.PROJECT_ID version = ProjectSettings.getVersionName(project) +koverReport { + filters { + excludes { + annotatedBy("com.oztechan.ccc.android.ui.compose.annotations.ThemedPreviews") + annotatedBy("androidx.compose.ui.tooling.preview.Preview") + annotatedBy("androidx.compose.runtime.Composable") + } + } +} + allprojects { apply(plugin = rootProject.libs.plugins.kover.get().pluginId).also { rootProject.dependencies.add("kover", project(path)) koverReport { - if (pluginManager.hasPlugin(rootProject.libs.plugins.androidLib.get().pluginId)) { + pluginManager.withPlugin(rootProject.libs.plugins.androidLib.get().pluginId) { defaults { - // adds the contents of the reports of `release` Android build variant to default reports - mergeWith("release") - } - } - filters { - excludes { - annotatedBy("com.oztechan.ccc.android.ui.compose.annotations.ThemedPreviews") - annotatedBy("androidx.compose.ui.tooling.preview.Preview") - annotatedBy("androidx.compose.runtime.Composable") + if (this@allprojects.path in setOf(":android:core:ad", ":android:core:billing", ":android:ui:mobile")) { + mergeWith("googleRelease") + } else { + mergeWith("release") + } } } }