diff --git a/android/build.gradle b/android/build.gradle index 95c51aca6..a6a5c24a2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -9,7 +9,6 @@ buildscript { classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' - classpath 'org.jacoco:org.jacoco.core:0.8.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION" classpath 'org.ajoberstar:grgit:1.5.0' classpath 'com.github.triplet.gradle:play-publisher:1.2.0' diff --git a/android/uhabits-android/build.gradle b/android/uhabits-android/build.gradle index ecd4f72f2..561044f78 100644 --- a/android/uhabits-android/build.gradle +++ b/android/uhabits-android/build.gradle @@ -2,7 +2,6 @@ apply plugin: 'idea' apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' -apply plugin: 'jacoco' apply plugin: 'com.github.triplet.play' import org.ajoberstar.grgit.Grgit @@ -73,10 +72,6 @@ android { outputs.upToDateWhen { false } showStandardStreams = true } - - jacoco { - includeNoLocationClasses = true - } } } @@ -150,37 +145,6 @@ kapt { correctErrorTypes = true } -task coverageReport(type: JacocoReport) { - def excludes = [ - '**/R.class', - '**/R$*.class', - '**/BuildConfig.*', - '**/Manifest*', - '**/*Test*.*', - '**/*$Lambda$*', - '**/*$ViewBinder*', - '**/*MembersInjector*', - '**/*_Provide*', - '**/*Module_*', - '**/com/android/**/*', - '**/*Dagger*', - '**/*_Factory*' - ] - def androidSrc = "${project.projectDir}/src/main/java" - def androidClasses = "${buildDir}/intermediates/classes/debug" - def jvmExecData = "${buildDir}/jacoco/testDebugUnitTest.exec" - def connectedExecData = "${buildDir}/outputs/code-coverage/connected/coverage.ec" - sourceDirectories = files(androidSrc) - classDirectories = files(fileTree(dir: androidClasses, excludes: excludes)) - executionData = files(jvmExecData, connectedExecData) - jacocoClasspath = configurations['jacocoAnt'] - - reports { - html.enabled = true - xml.enabled = true - } -} - play { track = 'alpha' } diff --git a/android/uhabits-core/build.gradle b/android/uhabits-core/build.gradle index e889513bd..a749d8f41 100644 --- a/android/uhabits-core/build.gradle +++ b/android/uhabits-core/build.gradle @@ -1,6 +1,5 @@ apply plugin: 'idea' apply plugin: 'java' -apply plugin: 'jacoco' dependencies { annotationProcessor "com.google.auto.factory:auto-factory:$AUTO_FACTORY_VERSION" @@ -29,20 +28,5 @@ dependencies { } } -jacocoTestReport { - reports { - xml.enabled = true - html.enabled = true - } - - afterEvaluate { - classDirectories = files(classDirectories.files.collect { - fileTree(dir: it, exclude: '**/*Factory.*') - }) - } -} - -check.dependsOn jacocoTestReport - sourceCompatibility = "1.8" targetCompatibility = "1.8"