This repository was archived by the owner on Feb 14, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathbuild.gradle
75 lines (54 loc) · 1.84 KB
/
build.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apply plugin: "com.android.library"
android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 14
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
}
dependencies {
api "androidx.appcompat:appcompat:1.1.0"
api "oauth.signpost:signpost-core:1.2.1.2"
api "se.akerfeldt:okhttp-signpost:1.1.0"
api "com.github.parse-community.Parse-SDK-Android:parse:1.22.1"
testImplementation "junit:junit:4.12"
testImplementation "org.mockito:mockito-core:1.10.19"
}
//region Code Coverage
apply plugin: "jacoco"
jacoco {
toolVersion "0.7.1.201405082137"
}
task jacocoTestReport(type: JacocoReport, dependsOn: "testDebugUnitTest") {
group = "Reporting"
description = "Generate Jacoco coverage reports"
classDirectories = fileTree(
dir: "${buildDir}/intermediates/classes/debug",
excludes: ['**/R.class',
'**/R$*.class',
'**/*$ViewInjector*.*',
'**/BuildConfig.*',
'**/Manifest*.*',
'**/gdata/**',
'**/oauth/**',
'**/signpost/**']
)
sourceDirectories = files("${buildDir.parent}/src/main/java")
additionalSourceDirs = files([
"${buildDir}/generated/source/buildConfig/debug",
"${buildDir}/generated/source/r/debug"
])
executionData = files("${buildDir}/jacoco/testDebugUnitTest.exec")
reports {
xml.enabled = true
html.enabled = true
}
}
//endregion
//region Coveralls
apply plugin: "com.github.kt3k.coveralls"
coveralls.jacocoReportPath = "${buildDir}/reports/jacoco/jacocoTestReport/jacocoTestReport.xml"
//endregion
apply from: "https://raw.githubusercontent.com/Commit451/gradle-android-javadocs/1.1.0/gradle-android-javadocs.gradle"