forked from yoog568/TimeMachine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
57 lines (52 loc) · 2.28 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
include ':timemachine'
include ':timemachine-store'
include ':timemachine-widget'
include ':transformer'
// include ':multitype'
// project(':multitype').projectDir = new File(rootProject.projectDir, '../MultiType/library')
gradle.ext.supportLibraryVersion = '26.1.0'
gradle.ext.ageraVersion = '1.3.0'
gradle.ext.leakCanaryVersion = '1.5'
gradle.ext.crashwoodpeckerVersion = '1.3.2'
gradle.ext.buildToolsVersion = '26.0.2'
gradle.allprojects {
afterEvaluate { project ->
if (project.hasProperty("android")) {
android {
lintOptions {
abortOnError false
textReport true
textOutput 'stdout'
checkAllWarnings true
}
}
dependencies {
compile 'com.android.support:support-annotations:' + gradle.supportLibraryVersion
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
}
task jacocoTestReport(type: JacocoReport, dependsOn: "testDebugUnitTest") {
group = "Reporting"
description = "Generate Jacoco coverage reports"
def fileFilter = ['**/R.class', '**/R$*.class', '**/BR.class',
'**/BuildConfig.*', '**/Manifest*.*', 'android/**/*.*']
def debugTree = fileTree(dir: "${project.buildDir}/intermediates/classes/debug",
excludes: fileFilter)
def mainSrc = "${project.projectDir}/src/main/java"
sourceDirectories = files([mainSrc])
classDirectories = files([debugTree])
additionalSourceDirs = files(["${buildDir}/generated/source/buildConfig/debug",
"${buildDir}/generated/source/r/debug"])
executionData =
fileTree(dir: project.projectDir, includes: ['**/*.exec', '**/*.ec'])
reports {
xml.enabled = true
xml.destination = "${buildDir}/jacocoTestReport.xml"
csv.enabled = false
html.enabled = true
html.destination = "${buildDir}/reports/jacoco"
}
}
}
}
}