forked from CtripMobile/DynamicAPK
-
Notifications
You must be signed in to change notification settings - Fork 1
/
global_config.gradle
68 lines (56 loc) · 1.66 KB
/
global_config.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
//所有工程都要用的公共配置,由各个子模块直接apply from
android {
compileSdkVersion 23
buildToolsVersion "21.1.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
}
buildTypes {
debug {
debuggable true
minifyEnabled false
}
release {
minifyEnabled false
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions{
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/NOTICE.TXT'
exclude 'META-INF/LICENSE.TXT'
exclude 'META-INF/LICENSE.TXT'
exclude 'META-INF/LICENSE.txt'
}
dexOptions {
javaMaxHeapSize "4g"
preDexLibraries = false
}
// lint所有选项请单独加入
lintOptions {
checkReleaseBuilds true
abortOnError false
check 'NewApi' //新API
showAll true
textReport true
textOutput file("${ctripRoot}/build-outputs/lint/${project.name}_lint-report.txt")
xmlReport true
xmlOutput file("${ctripRoot}/build-outputs/lint/${project.name}_lint-report.xml")
htmlReport true
htmlOutput file("${ctripRoot}/build-outputs/lint/${project.name}_lint-report.html")
}
}