Skip to content

Commit 01ebcb1

Browse files
build(deps): Bump org.jetbrains.kotlinx.kover from 0.7.6 to 0.9.2 (#22218)
* build(deps): Bump org.jetbrains.kotlinx.kover from 0.7.6 to 0.9.2 Bumps [org.jetbrains.kotlinx.kover](https://github.com/Kotlin/kotlinx-kover) from 0.7.6 to 0.9.2. - [Release notes](https://github.com/Kotlin/kotlinx-kover/releases) - [Changelog](https://github.com/Kotlin/kotlinx-kover/blob/main/CHANGELOG.md) - [Commits](Kotlin/kotlinx-kover@v0.7.6...v0.9.2) --- updated-dependencies: - dependency-name: org.jetbrains.kotlinx.kover dependency-version: 0.9.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Changing Kover syntax --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adalberto Plaza <[email protected]>
1 parent db9cc0f commit 01ebcb1

File tree

2 files changed

+46
-45
lines changed

2 files changed

+46
-45
lines changed

config/gradle/code_coverage.gradle

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,54 @@ static String resolveProjectVariantForCodeCoverage(Project project) {
88

99
allprojects {
1010
pluginManager.withPlugin("org.jetbrains.kotlinx.kover") {
11-
if (project.plugins.hasPlugin("com.android.library") || project.plugins.hasPlugin("com.android.application")) {
12-
koverReport {
13-
defaults {
14-
mergeWith(resolveProjectVariantForCodeCoverage(project))
11+
kover {
12+
if (project.plugins.hasPlugin("com.android.library") || project.plugins.hasPlugin("com.android.application")) {
13+
currentProject {
14+
createVariant("custom") {
15+
addWithDependencies([resolveProjectVariantForCodeCoverage(project)] as String[], false)
16+
}
1517
}
1618
}
17-
}
18-
19-
koverReport {
20-
filters {
21-
excludes {
22-
packages(
23-
'com.bumptech.glide',
24-
'dagger.*',
25-
'*.compose*',
26-
'*.debug*',
27-
'hilt_aggregated_deps',
28-
'*.databinding',
29-
'org.wordpress.android.modules',
30-
'org.wordpress.android.widgets',
31-
)
3219

33-
classes(
34-
'*_Factory*',
35-
'*Activity',
36-
'*Activity$*',
37-
'*Adapter',
38-
'*Adapter$*',
39-
'*BuildConfig',
40-
'*DiffCallback*',
41-
'*Dialog',
42-
'*Dialog$*',
43-
'*Fragment',
44-
'*Fragment$*',
45-
'*FragmentDirections*',
46-
'*FragmentKt*',
47-
'*Module',
48-
'*Module_*',
49-
'*View',
50-
'*View$*',
51-
'*ViewHolder',
52-
'*ViewHolder$*',
53-
'*ViewHolderKt*',
54-
'*.Hilt_*',
55-
'*HiltModules*',
56-
'*_MembersInjector',
57-
)
20+
reports {
21+
filters {
22+
excludes {
23+
classes(
24+
// Package exclusions - converted to class patterns
25+
'com.bumptech.glide.*',
26+
'dagger.*',
27+
'*.compose*',
28+
'*.debug*',
29+
'hilt_aggregated_deps.*',
30+
'*.databinding.*',
31+
'org.wordpress.android.modules.*',
32+
'org.wordpress.android.widgets.*',
33+
// Class pattern exclusions
34+
'*_Factory*',
35+
'*Activity',
36+
'*Activity$*',
37+
'*Adapter',
38+
'*Adapter$*',
39+
'*BuildConfig',
40+
'*DiffCallback*',
41+
'*Dialog',
42+
'*Dialog$*',
43+
'*Fragment',
44+
'*Fragment$*',
45+
'*FragmentDirections*',
46+
'*FragmentKt*',
47+
'*Module',
48+
'*Module_*',
49+
'*View',
50+
'*View$*',
51+
'*ViewHolder',
52+
'*ViewHolder$*',
53+
'*ViewHolderKt*',
54+
'*.Hilt_*',
55+
'*HiltModules*',
56+
'*_MembersInjector',
57+
)
58+
}
5859
}
5960
}
6061
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ junit = '4.13.2'
8585
kotlin-compile-testing = '1.6.0'
8686
kotlin-main = '2.2.10'
8787
kotlinx-coroutines = '1.10.2'
88-
kotlinx-kover = '0.7.6'
88+
kotlinx-kover = '0.9.2'
8989
ksp = '2.2.10-2.0.2'
9090
mockito-android = '5.20.0'
9191
mockito-kotlin = '6.0.0'

0 commit comments

Comments
 (0)