This repository has been archived by the owner on May 9, 2018. It is now read-only.
forked from ConnectSDK/Connect-SDK-Android
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
116 lines (96 loc) · 2.76 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
}
}
allprojects {
repositories {
jcenter()
}
}
apply plugin: 'com.android.library'
apply plugin: 'jacoco'
jacoco {
toolVersion = "0.7.1.201405082137"
}
task jacocoTestReport(type:JacocoReport, dependsOn: "check") {
group = "Reporting"
description = "Generate Jacoco coverage reports"
classDirectories = fileTree(
dir: 'build/intermediates/classes/debug',
excludes: ['**/R.class',
'**/R$*.class',
'**/*$ViewInjector*.*',
'**/BuildConfig.*',
'**/Manifest*.*']
)
additionalSourceDirs = files(android.sourceSets.main.java.srcDirs)
sourceDirectories = files(android.sourceSets.main.java.srcDirs)
executionData = files('build/jacoco/testDebug.exec')
reports {
xml.enabled = true
html.enabled = true
}
}
build.dependsOn jacocoTestReport
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
useLibrary 'org.apache.http.legacy'
packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = [
'src',
'core/src',
'modules/google_cast/src',
'modules/firetv/src',
]
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
buildTypes {
debug {
testCoverageEnabled = true
}
release {
minifyEnabled false
}
}
android {
lintOptions {
abortOnError false
}
}
}
android.testOptions.unitTests.all {
include '**/*Test.class'
}
dependencies {
compile files('core/libs/java-websocket-patch.jar')
compile files('core/libs/javax.jmdns_3.4.1-patch2.jar')
compile fileTree(dir: 'modules/firetv/libs', include: '*.jar')
compile 'com.android.support:support-v4:22.2.1'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:mediarouter-v7:22.2.1'
compile 'com.google.android.gms:play-services-cast:7.8.0'
testCompile 'org.apache.maven:maven-ant-tasks:2.1.3'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-all:1.10.19'
testCompile 'org.powermock:powermock-api-mockito:1.6.2'
testCompile 'xmlunit:xmlunit:1.4'
}
apply from: 'maven-push.gradle'