-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.gradle
70 lines (59 loc) · 1.57 KB
/
common.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
// All common project settings
android {
// Fix build error on including libs that with these files
packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/MANIFEST.MF'
}
compileOptions {
encoding "UTF-8"
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// continue build even found lint error
lintOptions {
abortOnError false
}
dexOptions {
// Avoid proguard build with OOM error
javaMaxHeapSize "4g"
jumboMode = true
}
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}
}
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
kapt {
useBuildCache = true
}
buildTypes {
release {
minifyEnabled true
zipAlignEnabled true
}
debug {
debuggable true
minifyEnabled false
zipAlignEnabled false
}
}
}
dependencies {
}