build.gradle
2.55 KB
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
96
97
98
99
100
101
102
103
104
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath "com.alibaba:arouter-register:1.0.2"
//greenDao数据库-杨帅
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
//------------------ 资源库配置 ------------------
maven {
url "http://android.nexus.cnlive.com/repository/cnlive-mixed/"
credentials { username = nexusId; password = nexusPw }
}
//------------------ 资源库配置 END------------------
maven {
url 'https://dl.bintray.com/granzon/cnlive'
}
maven {
url 'https://dl.bintray.com/granzon/cnliveLibs'
}
maven {
url "https://jitpack.io"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
def versionMajor = 1
def versionMinor = 0
def versionPatch = 0
def versionBuild = 0
// module依赖库公共版本号
versionCode = versionMajor * 1000 + versionMinor * 100 + versionPatch * 10 + versionBuild
versionName = "${versionMajor}.${versionMinor}.${versionPatch}.${versionBuild}"
compileSdkVersion = 28
buildToolsVersion = "28.0.3"
minSdkVersion = 16
targetSdkVersion = 27
//support 相关
supportV4 = '28.0.0'
appcompatV7 = '28.0.0'
design = '28.0.0'
supportV13 = '28.0.0'
recyclerviewV7 = '28.0.0'
cardviewV7 = '28.0.0'
appArch = '1.1.0'
//qmui
qmui = '1.1.5'
libBase = '1.0.9'
libNetwork = '1.1.0'
libLargeImage = '1.0.1'
libEmoj = '1.9.8'
libMenu = '1.0.4'
//glide
glide = '4.5.0'
glideTransformations = '3.0.1'
compiler = '4.5.0'
magicindicator = '1.6.0'
//SmartRefresh
SmartRefreshLayout = '1.1.0-alpha-1'
SmartRefreshHeader = '1.1.0-alpha-1'
//阿里路由框架
arouterApiVersion = '1.4.0'
arouterCompilerVersion = '1.2.1'
//greendao
greendao = '3.2.2'
cnlive_baiduMap="0.0.3"
eventBus = "3.1.1"
easypermissions = '1.0.0'
TimePickerDialog = '1.0.1'
libCnUtil = '3.1.3'
libAnalytics = '1.0.8'
okhttp = '3.8.1'
oki = '1.13.0'
}