mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Remove Jacoco
This commit is contained in:
@@ -9,7 +9,6 @@ buildscript {
|
|||||||
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
||||||
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4'
|
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4'
|
||||||
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
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.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
|
||||||
classpath 'org.ajoberstar:grgit:1.5.0'
|
classpath 'org.ajoberstar:grgit:1.5.0'
|
||||||
classpath 'com.github.triplet.gradle:play-publisher:1.2.0'
|
classpath 'com.github.triplet.gradle:play-publisher:1.2.0'
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ apply plugin: 'idea'
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
apply plugin: 'kotlin-kapt'
|
apply plugin: 'kotlin-kapt'
|
||||||
apply plugin: 'jacoco'
|
|
||||||
apply plugin: 'com.github.triplet.play'
|
apply plugin: 'com.github.triplet.play'
|
||||||
import org.ajoberstar.grgit.Grgit
|
import org.ajoberstar.grgit.Grgit
|
||||||
|
|
||||||
@@ -73,10 +72,6 @@ android {
|
|||||||
outputs.upToDateWhen { false }
|
outputs.upToDateWhen { false }
|
||||||
showStandardStreams = true
|
showStandardStreams = true
|
||||||
}
|
}
|
||||||
|
|
||||||
jacoco {
|
|
||||||
includeNoLocationClasses = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,37 +145,6 @@ kapt {
|
|||||||
correctErrorTypes = true
|
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 {
|
play {
|
||||||
track = 'alpha'
|
track = 'alpha'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'jacoco'
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
annotationProcessor "com.google.auto.factory:auto-factory:$AUTO_FACTORY_VERSION"
|
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"
|
sourceCompatibility = "1.8"
|
||||||
targetCompatibility = "1.8"
|
targetCompatibility = "1.8"
|
||||||
|
|||||||
Reference in New Issue
Block a user