1 |
|
2 |
buildscript {
|
3 |
repositories {
|
4 |
jcenter()
|
5 |
}
|
6 |
}
|
7 |
|
8 |
apply plugin: 'com.android.application'
|
9 |
// -------QC-------
|
10 |
// apply plugin: 'com.neenbedankt.android-apt'
|
11 |
apply plugin: 'net.ltgt.apt'
|
12 |
apply from: '../config/quality.gradle'
|
13 |
apply plugin: 'spoon'
|
14 |
// -------QC-------
|
15 |
|
16 |
repositories {
|
17 |
jcenter()
|
18 |
|
19 |
flatDir {
|
20 |
dirs 'lib'
|
21 |
}
|
22 |
}
|
23 |
|
24 |
dependencies {
|
25 |
// dependencies for app building
|
26 |
|
27 |
compile project(':android-about-page')
|
28 |
|
29 |
compile fileTree(dir: 'lib', include: '*.jar')
|
30 |
compile project(':android-support-v7-appcompat')
|
31 |
compile project(':android-support-annotations')
|
32 |
compile project(':android-support-vector-drawable')
|
33 |
|
34 |
// androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
|
35 |
|
36 |
}
|
37 |
|
38 |
|
39 |
tasks.withType(Test) {
|
40 |
// increased logging for tests
|
41 |
testLogging {
|
42 |
events "passed", "skipped", "failed"
|
43 |
}
|
44 |
}
|
45 |
|
46 |
android {
|
47 |
compileSdkVersion 24
|
48 |
buildToolsVersion "24.0.2"
|
49 |
|
50 |
defaultConfig {
|
51 |
minSdkVersion 9
|
52 |
targetSdkVersion 23
|
53 |
|
54 |
jackOptions {
|
55 |
enabled true
|
56 |
}
|
57 |
|
58 |
vectorDrawables.useSupportLibrary = true
|
59 |
// generatedDensities = []
|
60 |
|
61 |
}
|
62 |
|
63 |
aaptOptions {
|
64 |
additionalParameters "--no-version-vectors"
|
65 |
}
|
66 |
|
67 |
|
68 |
dexOptions {
|
69 |
javaMaxHeapSize "1.6g"
|
70 |
}
|
71 |
|
72 |
sourceSets {
|
73 |
main {
|
74 |
manifest.srcFile 'AndroidManifest.xml'
|
75 |
java.srcDirs = ['src']
|
76 |
resources.srcDirs = ['src']
|
77 |
aidl.srcDirs = ['src']
|
78 |
renderscript.srcDirs = ['src']
|
79 |
res.srcDirs = ['res']
|
80 |
assets.srcDirs = ['assets']
|
81 |
jniLibs.srcDirs = ['libs']
|
82 |
}
|
83 |
|
84 |
}
|
85 |
|
86 |
compileOptions {
|
87 |
encoding "UTF-8"
|
88 |
sourceCompatibility JavaVersion.VERSION_1_8
|
89 |
targetCompatibility JavaVersion.VERSION_1_8
|
90 |
}
|
91 |
|
92 |
lintOptions {
|
93 |
abortOnError false
|
94 |
}
|
95 |
|
96 |
packagingOptions {
|
97 |
exclude 'META-INF/LICENSE.txt'
|
98 |
// -------QC-------
|
99 |
exclude 'LICENSE.txt'
|
100 |
exclude 'META-INF/NOTICE.txt'
|
101 |
exclude 'META-INF/ASL2.0'
|
102 |
exclude 'META-INF/LICENSE'
|
103 |
exclude 'META-INF/NOTICE'
|
104 |
// -------QC-------
|
105 |
}
|
106 |
|
107 |
}
|
108 |
|
109 |
|