Skip to content

Commit

Permalink
Update coveralls plugin and fix buildDir
Browse files Browse the repository at this point in the history
  • Loading branch information
vgaidarji committed Mar 15, 2024
1 parent c631691 commit 586a113
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'com.google.firebase.appdistribution'
apply plugin: 'com.google.firebase.crashlytics'
apply from: 'config/quality.gradle'
apply from: 'config/jacoco.gradle'
//apply from: 'config/coveralls.gradle'
apply from: 'config/coveralls.gradle'

def versionMajor = 1
def versionMinor = 0
Expand Down
6 changes: 3 additions & 3 deletions app/config/jacoco.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ ext {

jacoco {
toolVersion = "0.8.11"
reportsDirectory = file("$buildDir/reports")
reportsDirectory = file("${buildDir}/reports")
}

task jacocoTestReport(type:JacocoReport, dependsOn: "testDebugUnitTest") {
group = "Reporting"
description = "Generate Jacoco coverage reports for Debug build"
classDirectories = fileTree(
dir: "$buildDir/tmp/kotlin-classes/debug",
dir: "${buildDir}/tmp/kotlin-classes/debug",
excludes: ['**/R.class',
'**/R$*.class',
'**/*$ViewBinder*.*',
Expand All @@ -35,7 +35,7 @@ task jacocoTestReport(type:JacocoReport, dependsOn: "testDebugUnitTest") {
}
additionalSourceDirs = files(coverageSourceDirs)
sourceDirectories = files(coverageSourceDirs)
executionData = files("$buildDir/jacoco/testDebugUnitTest.exec")
executionData = files("${buildDir}/jacoco/testDebugUnitTest.exec")
}

tasks.withType(Test) {
Expand Down
6 changes: 3 additions & 3 deletions app/config/quality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ android {
abortOnError false
xmlReport true
htmlReport true
lintConfig file("${project.rootDir}/app/config/lint/lint.xml")
htmlOutput file("$project.buildDir/reports/lint/lint-result.html")
xmlOutput file("$project.buildDir/reports/lint/lint-result.xml")
lintConfig file("${buildDir}/app/config/lint/lint.xml")
htmlOutput file("${buildDir}/reports/lint/lint-result.html")
xmlOutput file("${buildDir}/reports/lint/lint-result.xml")
}
}

Expand Down
9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ buildscript {
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.7.1'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.gms:google-services:4.4.1"
classpath "com.google.firebase:firebase-appdistribution-gradle:4.2.0"
Expand All @@ -26,7 +29,3 @@ allprojects {
mavenCentral()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

0 comments on commit 586a113

Please sign in to comment.