Skip to content

Commit 1fd34ad

Browse files
committed
Revert
1 parent 38f283b commit 1fd34ad

File tree

10 files changed

+31
-31
lines changed

10 files changed

+31
-31
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ subprojects {
5555
"sonar.gradle.skipCompile" to true,
5656
"sonar.sources" to "${projectDir}/src/main/kotlin",
5757
"sonar.java.binaries" to layout.buildDirectory,
58-
// "sonar.coverage.jacoco.xmlReportPaths" to "${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"
58+
"sonar.coverage.jacoco.xmlReportPaths" to "${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"
5959
)
6060
)
6161
}

buildSrc/src/main/kotlin/jacoco-report.gradle.kts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ private val executionDataTree = fileTree(project.layout.buildDirectory) {
3737
)
3838
}
3939

40-
//tasks {
41-
// register<JacocoReport>("jacocoDebugTestReport") {
42-
// group = "Reporting"
43-
// description = "Code coverage report for both Android and Unit tests."
44-
//
45-
// dependsOn("testDebugUnitTest")
46-
// reports {
47-
// xml.required.set(true)
48-
// html.required.set(true)
49-
// html.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/html"))
50-
// xml.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"))
51-
// }
52-
// sourceDirectories.setFrom(sourceDirectoriesTree)
53-
// classDirectories.setFrom(files(classDirectoriesTree))
54-
// executionData.setFrom(executionDataTree)
55-
// }
56-
//}
57-
//
58-
//afterEvaluate {
59-
// project.tasks.getByName("testDebugUnitTest")
60-
// .finalizedBy("jacocoDebugTestReport")
61-
//}
40+
tasks {
41+
register<JacocoReport>("jacocoDebugTestReport") {
42+
group = "Reporting"
43+
description = "Code coverage report for both Android and Unit tests."
44+
45+
dependsOn("testDebugUnitTest")
46+
reports {
47+
xml.required.set(true)
48+
html.required.set(true)
49+
html.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/html"))
50+
xml.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"))
51+
}
52+
sourceDirectories.setFrom(sourceDirectoriesTree)
53+
classDirectories.setFrom(files(classDirectoriesTree))
54+
executionData.setFrom(executionDataTree)
55+
}
56+
}
57+
58+
afterEvaluate {
59+
project.tasks.getByName("testDebugUnitTest")
60+
.finalizedBy("jacocoDebugTestReport")
61+
}

core/android/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
alias(libs.plugins.sqlDelight)
55
alias(libs.plugins.google.ksp)
66
id("publish-module-android")
7-
// id("jacoco-report")
7+
id("jacoco-report")
88
}
99

1010
project.apply {

product/walletconnectmodal/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
alias(libs.plugins.google.ksp)
55
alias(libs.plugins.paparazzi)
66
id("publish-module-android")
7-
// id("jacoco-report")
7+
id("jacoco-report")
88
}
99

1010
project.apply {

product/web3modal/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
alias(libs.plugins.google.ksp)
55
alias(libs.plugins.paparazzi)
66
id("publish-module-android")
7-
// id("jacoco-report")
7+
id("jacoco-report")
88
}
99

1010
project.apply {

product/web3wallet/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
id(libs.plugins.kotlin.android.get().pluginId)
44
alias(libs.plugins.google.ksp)
55
id("publish-module-android")
6-
// id("jacoco-report")
6+
id("jacoco-report")
77
}
88

99
project.apply {

protocol/auth/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
alias(libs.plugins.sqlDelight)
55
alias(libs.plugins.google.ksp)
66
id("publish-module-android")
7-
// id("jacoco-report")
7+
id("jacoco-report")
88
}
99

1010
project.apply {

protocol/chat/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
alias(libs.plugins.sqlDelight)
55
alias(libs.plugins.google.ksp)
66
id("publish-module-android")
7-
// id("jacoco-report")
7+
id("jacoco-report")
88
}
99

1010
project.apply {

protocol/notify/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
alias(libs.plugins.sqlDelight)
55
alias(libs.plugins.google.ksp)
66
id("publish-module-android")
7-
// id("jacoco-report")
7+
id("jacoco-report")
88
}
99

1010
project.apply {

protocol/sign/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
alias(libs.plugins.sqlDelight)
55
alias(libs.plugins.google.ksp)
66
id("publish-module-android")
7-
// id("jacoco-report")
7+
id("jacoco-report")
88
}
99

1010
project.apply {

0 commit comments

Comments
 (0)