-
Notifications
You must be signed in to change notification settings - Fork 3
/
config_module.gradle
37 lines (34 loc) · 997 Bytes
/
config_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
if (isBuildModule.toBoolean()) {
//独立组件运行
apply plugin: 'com.android.application'
apply plugin: 'WMRouter'
} else {
//集成运行
apply plugin: 'com.android.library'
}
def globalConfig = rootProject.ext
def version = globalConfig.versions
android {
compileSdkVersion version.compileSdkVersion
defaultConfig {
minSdkVersion version.minSdkVersion
targetSdkVersion version.targetSdkVersion
versionCode version.versionCode
versionName version.versionName
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
if (isBuildModule.toBoolean()) {
//独立运行
manifest.srcFile 'src/main/debug/AndroidManifest.xml'
} else {
//合并到主工程
manifest.srcFile 'src/main/AndroidManifest.xml'
resources {
exclude 'src/main/debug/*'
}
}
}
}
}