-
Notifications
You must be signed in to change notification settings - Fork 0
/
commonbuild.gradle
61 lines (57 loc) · 1.58 KB
/
commonbuild.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
android {
signingConfigs {
jimi {
storeFile file(KEY)
storePassword KEY_PASSWORD
keyAlias KEY_ALIAS
keyPassword KEYPASSWORD
}
}
defaultConfig {
multiDexEnabled true
/*ndk {
//选择要添加的对应cpu类型的.so库。
abiFilters 'armeabi'
// 还可以添加 'x86', 'x86_64', 'mips', 'mips64', 'armeabi-v7a', 'armeabi-v8a'
}*/
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dexOptions {
javaMaxHeapSize "2048M"
preDexLibraries = false
}
lintOptions {
abortOnError false
ignoreWarnings true
disable "InvalidPackage"
lintConfig file("lint.xml")
disable 'MissingTranslation', 'ExtraTranslation'
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/ASL2.0'
exclude 'LICENSE'
exclude 'NOTICE'
}
dataBinding {
/*开启dataBinding*/
enabled true
}
}