-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon_module.gradle
53 lines (46 loc) · 1.33 KB
/
common_module.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
apply plugin: 'com.android.library'
// android配置
def config = rootProject.ext.android
def thirdDependencies = rootProject.ext.thirdDependencies
android {
compileSdkVersion config.compileSdkVersion
buildToolsVersion config.buildToolsVersion
useLibrary 'org.apache.http.legacy'
defaultConfig {
minSdkVersion config.minSdkVersion
versionCode config.versionCode
versionName config.versionName
// arouter
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
compileOptions {
sourceCompatibility rootProject.ext.javaVersion
targetCompatibility rootProject.ext.javaVersion
}
buildTypes {
release {
minifyEnabled false
zipAlignEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
disable 'InvalidPackage'
disable "ResourceType"
abortOnError false
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
manifest.srcFile 'src/main/AndroidManifest.xml'
}
}
}
dependencies {
api thirdDependencies.arouter
annotationProcessor thirdDependencies.arouterCompiler
}