-
Notifications
You must be signed in to change notification settings - Fork 263
/
settings.gradle
58 lines (43 loc) · 1.59 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
include ':setting'
def initLocalGradleEnvironment() {
Properties properties = new Properties()
File propertyFile = new File(rootDir.getAbsolutePath() + "/local.properties")
properties.load(propertyFile.newDataInputStream())
gradle.ext.sdkDir = properties.getProperty('sdk.dir')
gradle.ext.ndkDir = properties.getProperty('ndk.dir')
gradle.ext.localDir = properties.getProperty('local.dir')
gradle.ext.debugKeystore = properties.getProperty('debug.keystore')
}
def initVersion() {
// be in common use
gradle.ext.compileSdkVersion = 27
gradle.ext.targetVersion =27
gradle.ext.minSdkVersion = 14
gradle.ext.supportVersion = '27.0.2'
gradle.ext.versionCode = 17
gradle.ext.versionName = '1.3.0'
//app.gradle dependencies
//weather_core dependencies
gradle.ext.room_compiler = '1.0.0'
gradle.ext.hub = '1.7.5_dev'
//baselib.gradle dependencies
gradle.ext.calligraphy = '2.2.0'
gradle.ext.butterknife = '8.8.1'
gradle.ext.gson = '2.8.1'
gradle.ext.retrofit2 ='2.3.0'
gradle.ext.tinypinyin = '1.0.0'
gradle.ext.stetho ='1.5.0'
gradle.ext.leakcanary ='1.5.4'
gradle.ext.bugly_crashreport_upgrade ='1.3.4'
gradle.ext.silencedut_router ='1.3.0'
gradle.ext.silencedut_router_compiler = '1.0.1'
gradle.ext.taskscheduler = '1.2.5'
gradle.ext.expandableLayout ='1.3.0'
gradle.ext.lifecycle_extensions = '1.1.0'
gradle.ext.lifecycle_compiler = '1.1.0'
gradle.ext.room_runtime ='1.0.0'
}
//初始化
initLocalGradleEnvironment()
initVersion()
include 'app','baselib', 'weather_core', ':city'