Skip to content

Commit

Permalink
Merge pull request #91 from gabrielbmoro/feature/adding-kover-support
Browse files Browse the repository at this point in the history
Kover Support
  • Loading branch information
gabrielbmoro committed Jan 24, 2024
2 parents 9a74aab + fb111de commit 5b3700a
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 2 deletions.
26 changes: 25 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,29 @@

plugins {
id("com.streamplayer.application")
alias(libs.plugins.kover)
}

dependencies {
android {
koverReport {
filters {
excludes {
packages(
"*.di",
)

classes(
"*.BuildConfig",
"*.ComposableSingletons",
"*ScreenKt*",
)
annotatedBy("Generated")
}
}
}
}

dependencies {
implementation(projects.featureFavorites)
implementation(projects.featureListStreams)
implementation(projects.featureProfile)
Expand All @@ -26,4 +45,9 @@ dependencies {
implementation(libs.lottie)
implementation(libs.lottie)
testImplementation(libs.bundles.test)

// Kover - Combined report
kover(projects.featureListStreams)
kover(projects.featureProfile)
kover(projects.featureFavorites)
}
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.dokka) apply false
alias(libs.plugins.kover) apply false
}

tasks.register("clean", Delete::class) {
Expand Down
1 change: 1 addition & 0 deletions feature-favorites/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
plugins {
id("com.streamplayer.android-library")
id("com.streamplayer.compose")
alias(libs.plugins.kover)
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions feature-list-streams/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
plugins {
id("com.streamplayer.android-library")
id("com.streamplayer.compose")
alias(libs.plugins.kover)
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions feature-profile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
plugins {
id("com.streamplayer.android-library")
id("com.streamplayer.compose")
alias(libs.plugins.kover)
}

dependencies {
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ android_gradle_plugin = "8.2.1"
koin = "3.4.0"
ksp = "1.8.10-1.0.9"
dokka = "1.9.10"
kover = "0.7.5"

#Test
test_junit = "4.13.2"
Expand Down Expand Up @@ -146,3 +147,5 @@ kotlin_kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
kotlin_parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp"}
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka"}

kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }

0 comments on commit 5b3700a

Please sign in to comment.