Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubuid committed May 26, 2024
1 parent 38f283b commit 1fd34ad
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ subprojects {
"sonar.gradle.skipCompile" to true,
"sonar.sources" to "${projectDir}/src/main/kotlin",
"sonar.java.binaries" to layout.buildDirectory,
// "sonar.coverage.jacoco.xmlReportPaths" to "${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"
"sonar.coverage.jacoco.xmlReportPaths" to "${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"
)
)
}
Expand Down
44 changes: 22 additions & 22 deletions buildSrc/src/main/kotlin/jacoco-report.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ private val executionDataTree = fileTree(project.layout.buildDirectory) {
)
}

//tasks {
// register<JacocoReport>("jacocoDebugTestReport") {
// group = "Reporting"
// description = "Code coverage report for both Android and Unit tests."
//
// dependsOn("testDebugUnitTest")
// reports {
// xml.required.set(true)
// html.required.set(true)
// html.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/html"))
// xml.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"))
// }
// sourceDirectories.setFrom(sourceDirectoriesTree)
// classDirectories.setFrom(files(classDirectoriesTree))
// executionData.setFrom(executionDataTree)
// }
//}
//
//afterEvaluate {
// project.tasks.getByName("testDebugUnitTest")
// .finalizedBy("jacocoDebugTestReport")
//}
tasks {
register<JacocoReport>("jacocoDebugTestReport") {
group = "Reporting"
description = "Code coverage report for both Android and Unit tests."

dependsOn("testDebugUnitTest")
reports {
xml.required.set(true)
html.required.set(true)
html.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/html"))
xml.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/xml/jacoco.xml"))
}
sourceDirectories.setFrom(sourceDirectoriesTree)
classDirectories.setFrom(files(classDirectoriesTree))
executionData.setFrom(executionDataTree)
}
}

afterEvaluate {
project.tasks.getByName("testDebugUnitTest")
.finalizedBy("jacocoDebugTestReport")
}
2 changes: 1 addition & 1 deletion core/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
alias(libs.plugins.sqlDelight)
alias(libs.plugins.google.ksp)
id("publish-module-android")
// id("jacoco-report")
id("jacoco-report")
}

project.apply {
Expand Down
2 changes: 1 addition & 1 deletion product/walletconnectmodal/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
alias(libs.plugins.google.ksp)
alias(libs.plugins.paparazzi)
id("publish-module-android")
// id("jacoco-report")
id("jacoco-report")
}

project.apply {
Expand Down
2 changes: 1 addition & 1 deletion product/web3modal/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
alias(libs.plugins.google.ksp)
alias(libs.plugins.paparazzi)
id("publish-module-android")
// id("jacoco-report")
id("jacoco-report")
}

project.apply {
Expand Down
2 changes: 1 addition & 1 deletion product/web3wallet/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id(libs.plugins.kotlin.android.get().pluginId)
alias(libs.plugins.google.ksp)
id("publish-module-android")
// id("jacoco-report")
id("jacoco-report")
}

project.apply {
Expand Down
2 changes: 1 addition & 1 deletion protocol/auth/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
alias(libs.plugins.sqlDelight)
alias(libs.plugins.google.ksp)
id("publish-module-android")
// id("jacoco-report")
id("jacoco-report")
}

project.apply {
Expand Down
2 changes: 1 addition & 1 deletion protocol/chat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
alias(libs.plugins.sqlDelight)
alias(libs.plugins.google.ksp)
id("publish-module-android")
// id("jacoco-report")
id("jacoco-report")
}

project.apply {
Expand Down
2 changes: 1 addition & 1 deletion protocol/notify/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
alias(libs.plugins.sqlDelight)
alias(libs.plugins.google.ksp)
id("publish-module-android")
// id("jacoco-report")
id("jacoco-report")
}

project.apply {
Expand Down
2 changes: 1 addition & 1 deletion protocol/sign/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
alias(libs.plugins.sqlDelight)
alias(libs.plugins.google.ksp)
id("publish-module-android")
// id("jacoco-report")
id("jacoco-report")
}

project.apply {
Expand Down

0 comments on commit 1fd34ad

Please sign in to comment.