-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon_build.gradle
82 lines (70 loc) · 2.16 KB
/
common_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
apply plugin: 'com.alibaba.arouter'
apply plugin: 'com.jakewharton.butterknife'
android {
splits {
abi {
enable true
reset()
include 'armeabi-v7a'
universalApk false
}
}
signingConfigs {
release {
// keyAlias ''
// keyPassword ''
// storeFile file('../../xxx.jks')
// storePassword ''
}
debug {
// keyAlias ''
// keyPassword ''
// storeFile file('../../xxx.jks')
// storePassword ''
}
}
compileSdkVersion rootProject.ext.android["COMPILE_SDK_VERSION"]
defaultConfig {
minSdkVersion rootProject.ext.android["MIN_SDK_VERSION"]
targetSdkVersion rootProject.ext.android["TARGET_SDK_VERSION"]
multiDexEnabled true
resConfigs "zh"
consumerProguardFiles 'proguard-rules.pro'
vectorDrawables.useSupportLibrary = true
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath true
arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
}
}
flavorDimensions "versionCode"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
// signingConfig signingConfigs.debug
}
release {
minifyEnabled true
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
// signingConfig signingConfigs.release
}
}
lintOptions {
disable 'InvalidPackage'
disable "ResourceType"
abortOnError false
}
}
dependencies {
annotationProcessor rootProject.ext.dependencies["arouter-compiler"]
annotationProcessor (rootProject.ext.dependencies["butterknife-compiler"]){
exclude module: 'support-annotations'
}
}