|
@@ -415,17 +415,15 @@ android.applicationVariants.all { variant ->
|
|
|
tasks.register("combinedTestReport", JacocoReport) {
|
|
|
|
|
|
reports {
|
|
|
- xml.enabled = true
|
|
|
- html.enabled = true
|
|
|
+ xml.enabled true
|
|
|
+ html.enabled true
|
|
|
+ csv.enabled false
|
|
|
}
|
|
|
|
|
|
- def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
|
|
|
- def debugTree = fileTree(dir: "$project.buildDir/intermediates/classes/gplay/debug", excludes: fileFilter)
|
|
|
- def mainSrc = "$project.projectDir/src/main/java"
|
|
|
-
|
|
|
- sourceDirectories = files([mainSrc])
|
|
|
- classDirectories = files([debugTree])
|
|
|
- executionData = fileTree(dir: project.buildDir, includes: [
|
|
|
+ additionalSourceDirs.setFrom files(subprojects.sourceSets.main.allSource.srcDirs)
|
|
|
+ sourceDirectories.setFrom files(subprojects.sourceSets.main.allSource.srcDirs)
|
|
|
+ classDirectories.setFrom files(subprojects.sourceSets.main.output)
|
|
|
+ executionData.setFrom project.fileTree(dir: project.buildDir, includes: [
|
|
|
'jacoco/testGplayDebugUnitTest.exec', 'outputs/code-coverage/connected/flavors/GPLAY/*coverage.ec'
|
|
|
])
|
|
|
}
|