-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
39 lines (38 loc) · 1.02 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
includeCompat ':m-debug'
includeCompat ':m-search'
includeCompat ':m-webview'
includeCompat ':library-service'
includeCompat ':library-res'
includeCompat ':library-network'
includeCompat ':library-base'
includeCompat ':m-collect'
includeCompat ':m-project'
includeCompat ':m-square'
includeCompat ':m-splash'
includeCompat ':m-wx'
includeCompat ':m-my'
includeCompat ':m-login'
includeCompat ':m-home'
includeCompat ':app'
rootProject.name = "KC_MVVMComponent"
def includeCompat(String name) {
if (!isMaven(name)) {
include(name)
}
}
def isMaven(String name) {
println("isMaven" + name)
Properties properties = new Properties()
def file = new File("${name.replace(":", "")}/maven.properties")
if (file.exists()) {
InputStream inputStream = file.newDataInputStream()
properties.load(inputStream)
def str = properties.getProperty('MAVEN')
if (str == null) {
return false
} else {
return Boolean.parseBoolean(str)
}
}
return false
}