-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsettings.gradle
35 lines (33 loc) · 941 Bytes
/
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
includeCompat ':module-play'
includeCompat ':module-notice'
includeCompat ':module-community'
includeCompat ':module-user'
includeCompat ':module-login'
includeCompat ':module-home'
includeCompat ':module-entrance'
includeCompat ':library-res'
includeCompat ':library-network'
includeCompat ':library-base'
includeCompat ':app'
rootProject.name = "MvvmFrame"
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
}