Skip to content

Commit

Permalink
add kover support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlaster committed Aug 19, 2023
1 parent 0ea0e39 commit 22b552a
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
id("droidkaigi.primitive.android.firebase")
id("droidkaigi.primitive.spotless")
id("droidkaigi.primitive.android.roborazzi")
id("droidkaigi.primitive.kover")
}

val keystorePropertiesFile = file("keystore.properties")
Expand Down
1 change: 1 addition & 0 deletions app-ios-shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
plugins {
id("droidkaigi.primitive.kmp")
id("droidkaigi.primitive.kmp.ios")
id("droidkaigi.primitive.kover")
}

kotlin {
Expand Down
4 changes: 4 additions & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ gradlePlugin {
id = "droidkaigi.primitive.spotless"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.SpotlessPlugin"
}
register("kover") {
id = "droidkaigi.primitive.kover"
implementationClass = "io.github.droidkaigi.confsched2023.primitive.KoverPlugin"
}

// Conventions
register("androidFeature") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class AndroidFeaturePlugin : Plugin<Project> {
apply("droidkaigi.primitive.android.hilt")
apply("droidkaigi.primitive.android.roborazzi")
apply("droidkaigi.primitive.spotless")
apply("droidkaigi.primitive.kover")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.github.droidkaigi.confsched2023.primitive

import org.gradle.api.Plugin
import org.gradle.api.Project

class KoverPlugin : Plugin<Project> {
override fun apply(target: Project) {
with (target) {
pluginManager.apply("org.jetbrains.kotlinx.kover")
}
}
}
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
alias(libs.plugins.androidGradlePlugin) apply false
alias(libs.plugins.androidGradleLibraryPlugin) apply false
alias(libs.plugins.kotlinGradlePlugin) apply false
alias(libs.plugins.kotlinxKover) apply false
}

tasks.register("clean", Delete::class) {
Expand Down
1 change: 1 addition & 0 deletions core/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id("droidkaigi.primitive.kmp.ios")
id("droidkaigi.primitive.kmp.android.hilt")
id("droidkaigi.primitive.spotless")
id("droidkaigi.primitive.kover")
}

android.namespace = "io.github.droidkaigi.confsched2023.core.common"
Expand Down
1 change: 1 addition & 0 deletions core/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
id("droidkaigi.primitive.spotless")
id("droidkaigi.primitive.kmp.ktorfit")
id("droidkaigi.primitive.kmp.serialization")
id("droidkaigi.primitive.kover")
}

android.namespace = "io.github.droidkaigi.confsched2023.core.data"
Expand Down
1 change: 1 addition & 0 deletions core/designsystem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
id("droidkaigi.primitive.kmp.android.hilt")
id("droidkaigi.primitive.spotless")
id("droidkaigi.primitive.kmp.android.showkase")
id("droidkaigi.primitive.kover")
}

android.namespace = "io.github.droidkaigi.confsched2023.core.designsystem"
Expand Down
1 change: 1 addition & 0 deletions core/model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id("droidkaigi.primitive.kmp.android")
id("droidkaigi.primitive.kmp.ios")
id("droidkaigi.primitive.spotless")
id("droidkaigi.primitive.kover")
}

android.namespace = "io.github.droidkaigi.confsched2023.core.model"
Expand Down
1 change: 1 addition & 0 deletions core/testing/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id("droidkaigi.primitive.android.compose")
id("droidkaigi.primitive.android.hilt")
id("droidkaigi.primitive.spotless")
id("droidkaigi.primitive.kover")
}

android.namespace = "io.github.droidkaigi.confsched2023.core.testing"
Expand Down
1 change: 1 addition & 0 deletions core/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
id("droidkaigi.primitive.kmp.compose")
id("droidkaigi.primitive.kmp.android.hilt")
id("droidkaigi.primitive.spotless")
id("droidkaigi.primitive.kover")
}

android.namespace = "io.github.droidkaigi.confsched2023.core.ui"
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ kotlinGradlePlugin = { id = "org.jetbrains.kotlin.android", version.ref = "kotli
hiltGradlePlugin = { id = "com.google.dagger.hilt.android", version.ref = "dagger" }
roborazziGradlePlugin = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" }
kspGradlePlugin = { id = "com.google.devtools.ksp", version.ref = "ksp" }
kotlinxKover = { id = "org.jetbrains.kotlinx.kover", version = "0.7.3" }

[bundles]
plugins = [
Expand Down

0 comments on commit 22b552a

Please sign in to comment.