Skip to content

Commit

Permalink
build: prevent kover setup failure without Android SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
milgner committed Dec 22, 2023
1 parent f879502 commit 552ce9d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ idea {
dependencies {
kover(projects.modules.mockk)
kover(projects.modules.mockkAgent)
kover(projects.modules.mockkAndroid)
kover(projects.modules.mockkAgentAndroid)
// if the android SDK is not available trying to resolve the module names will fail
listOf("android", "agent-android").forEach { module ->
rootProject.subprojects.find { it.name == "mockk-$module" }?.let {
kover(it)
}
}

kover(projects.testModules.loggerTests)
kover(projects.testModules.clientTests)
kover(projects.testModules.performanceTests)
Expand Down

0 comments on commit 552ce9d

Please sign in to comment.