-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathbuild.gradle
87 lines (80 loc) · 2.25 KB
/
build.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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
//ext.kotlin_version = '1.0.0'
ext.kotlin_version = '1.3.31'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {url 'https://dl.bintray.com/jetbrains/anko'}
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
//版本号相关
versionCode = 2
versionName = '0.0.2'
minSdkVersion = 21
targetSdkVersion = 28
compileSdkVersion = 28
buildToolsVersion = "26.0.0"
//依赖库相关
supportVersion = '28.0.0'
butterknifeVersion = '8.7.0'
circleimageVersion = '2.2.0'
constraintVersion = "1.0.2"
//沉浸式
ultimatebarVersion = "2.0.0"
gsonVersion = "2.7"
frescoVersion = "0.12.0"
retrofitVersion = "2.1.0"
bannerVersion = "1.4.10"
rxandroidVersion = "2.0.1"
rxjavaVersion = "2.1.1"
rxjavaAdapterVersion = "2.3.0"
rxlifescyleVersion = "2.2.1"
photoViewVersion = "2.1.4"
//拦截器
interceptorVersion = "3.10.0"
easypermissionsVersion = "2.0.1"
skinSupportVersion = "3.1.1"
dbFlowVersion = "4.0.3"
leak = "1.5.4"
hotfixVersion = "3.2.3"
leancloudVersion = "v4.7.3"
qiniuVersion = "7.3.4"
ijkplayerVersion = "0.8.8"
baseRecyclerAdapterVersion = "2.9.30"
daggerVersion = "2.21"
frescoVersion = "1.13.0"
eventBusVersion = "3.1.1"
danmakuVersion = "0.9.25"
danmakuNdk = "0.9.21"
FlycoTabLayout = "2.1.2@aar"
bottomNavigationBar = "2.1.0"
room_version = "2.1.0"
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.core' &&
!details.requested.name.contains('androidx')) {
details.useVersion "1.3.1"
}
}
}
}