Skip to content

Commit

Permalink
Merge pull request #1193 from re-gmbh/fix/build-without-android-sdk
Browse files Browse the repository at this point in the history
Prevent kover setup failure without Android SDK
  • Loading branch information
Raibaz authored Dec 22, 2023
2 parents f879502 + 552ce9d commit 1626ac7
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 1626ac7

Please sign in to comment.