-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
95 lines (80 loc) · 2.12 KB
/
settings.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
83
84
85
86
87
88
89
90
91
92
93
94
95
// ===============
// = 主程序 ( 壳 ) =
// ===============
include(":app")
project(":app").projectDir = new File(rootDir, "application/app")
// =======================
// = module - 各个模块 APP =
// =======================
def modules = [
"module_splash",
"module_main",
"module_movie",
"module_person",
"module_tv",
]
modules.forEach {
// module 文件夹路径 ( 美化 configurations name )
File applicationModuleDir = new File(rootDir, "application/module")
include(":$it")
project(":$it").projectDir = new File(applicationModuleDir, "$it")
}
// ===================
// = core - 核心开发库 =
// ===================
def cores = [
"core",
"core_base_lib",
"core_lib_base",
"core_lib_base_split",
"core_lib_bean",
"core_lib_channel_flavors",
"core_lib_config",
"core_lib_debug_assist",
"core_lib_engine",
"core_lib_environment",
"core_lib_language",
"core_lib_mvvm",
"core_lib_network",
"core_lib_property",
"core_lib_receiver",
"core_lib_router",
"core_lib_ui",
"core_lib_ui_skin",
"core_lib_upload",
"core_lib_utils",
"core_lib_web",
]
cores.forEach {
include(":$it")
// 属于 core/libs 模块
if (it.startsWith("core_lib_")) {
// 例 core/libs/lib_engine
project(":$it").projectDir = new File(
rootDir, "component/core/libs/" + it.replace("core_", "")
)
} else {
project(":$it").projectDir = new File(rootDir, "component/core/$it")
}
}
// ====================
// = libs - 模块封装复用 =
// ====================
def libs = [
"lib_splash_ads",
"lib_tmdb_ui",
]
libs.forEach {
include(":$it")
project(":$it").projectDir = new File(rootDir, "component/libs/$it")
}
// ========================
// = Interesting - 规范检测 =
// ========================
def interestings = [
"DevStandard",
]
interestings.forEach {
include(":$it")
project(":$it").projectDir = new File(rootDir, "interesting/$it")
}