-
Notifications
You must be signed in to change notification settings - Fork 1
/
yc.gradle
103 lines (87 loc) · 6.25 KB
/
yc.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
int getVersionCode(String style) {
return java.lang.Integer.parseInt(new Date().format(style, TimeZone.getTimeZone("GMT+8")))
}
ext {
isApplication = true //false:作为Lib组件存在, true:作为application存在,这个不建议改
isGankApplication = false //干货模块开关,false:作为Lib组件存在, true:作为application存在
android = [
compileSdkVersion : 28,
buildToolsVersion : "28.0.3",
minSdkVersion : 17,
targetSdkVersion : 28,
versionCode : getVersionCode("yyyyMMddHH"),
versionName : "6.4.0_beta" //必须是int或者float,否则影响线上升级
]
version = [
androidSupportSdkVersion: "28.0.0",
retrofitSdkVersion : "2.4.0",
glideSdkVersion : "4.8.0",
canarySdkVersion : "1.5.4",
constraintVersion : "1.0.2",
okhttp : "3.8.1"
]
dependencies = [
//support
"appcompat-v7" : "com.android.support:appcompat-v7:${version["androidSupportSdkVersion"]}",
"design" : "com.android.support:design:${version["androidSupportSdkVersion"]}",
"palette" : "com.android.support:palette-v7:${version["androidSupportSdkVersion"]}",
"support-v4" : "com.android.support:support-v4:${version["androidSupportSdkVersion"]}",
"cardview-v7" : "com.android.support:cardview-v7:${version["androidSupportSdkVersion"]}",
"annotations" : "com.android.support:support-annotations:${version["androidSupportSdkVersion"]}",
"recyclerview-v7" : "com.android.support:recyclerview-v7:${version["androidSupportSdkVersion"]}",
"constraint-layout" : "com.android.support.constraint:constraint-layout:${version["constraintVersion"]}",
"percent" : "com.android.support:percent:${version["androidSupportSdkVersion"]}",
"dynamic" : "com.android.support:support-dynamic-animation:${version["androidSupportSdkVersion"]}",
"multidex" : "com.android.support:multidex:1.0.2",
//network
"retrofit" : "com.squareup.retrofit2:retrofit:${version["retrofitSdkVersion"]}",
"retrofit-converter-gson" : "com.squareup.retrofit2:converter-gson:${version["retrofitSdkVersion"]}",
"retrofit-adapter-rxjava2" : "com.squareup.retrofit2:adapter-rxjava2:${version["retrofitSdkVersion"]}",
"okhttp" : "com.squareup.okhttp3:okhttp:${version["okhttp"]}",
"logging-interceptor" : "com.squareup.okhttp3:logging-interceptor:${version["okhttp"]}",
"rxandroid2" : "io.reactivex.rxjava2:rxandroid:2.1.0",
"rxjava2" : "io.reactivex.rxjava2:rxjava:2.1.11",
"rxrelay" : "com.jakewharton.rxrelay2:rxrelay:2.0.0",
//由于项目在早期用rx 1.x版本,后期组件化更改内容太多,固后期将rx2替换rx1
"retrofit-adapter-rxjava" :'com.squareup.retrofit2:adapter-rxjava:2.1.0',
"rxandroid" : "io.reactivex.rxjava2:rxandroid:1.2.1",
"rxjava" : "io.reactivex.rxjava2:rxjava:1.2.1",
//router
"router" : "com.alibaba:arouter-api:1.4.1",
"router-compiler" : "com.alibaba:arouter-compiler:1.2.2",
//image
"glide" : "com.github.bumptech.glide:glide:${version["glideSdkVersion"]}",
"glide-compiler" : "com.github.bumptech.glide:compiler:${version["glideSdkVersion"]}",
//"glide-transformations" : "jp.wasabeef:glide-transformations:3.3.0",
"picasso" : "com.squareup.picasso:picasso:2.5.2",
"takephoto" : "com.jph.takephoto:takephoto_library:4.0.3",
"imagepicker" : "com.lzy.widget:imagepicker:0.5.0",
//view
"tablayout" : "com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar",
"flowlayout" : "com.zhy:flowlayout-lib:1.0.3",
//yc
"YCStateLib" : "cn.yc:YCStateLib:1.2.2",
"YCDialogLib" : "cn.yc:YCDialogLib:3.6.6",
"YCCountDownViewLib" : "cn.yc:YCCountDownViewLib:1.0",
"YCUtilsLib" : "cn.yc:YCUtilsLib:1.6.2",
"YCMultiInputViewLib" : "cn.yc:YCMultiInputViewLib:1.0",
"YCProgressLib" : "cn.yc:YCProgressLib:1.2.7",
"YCCardViewLib" : "cn.yc:YCCardViewLib:1.2",
"YCCustomTextLib" : "cn.yc:YCCustomTextLib:2.1",
"YCRecycleViewLib" : "cn.yc:YCRecycleViewLib:1.1",
"YCGalleryLib" : "cn.yc:YCGalleryLib:1.1.5",
"YCBaseAdapterLib" : "cn.yc:YCBaseAdapterLib:1.3.4",
"YCBannerLib" : "cn.yc:YCBannerLib:1.4.0",
"YCRefreshViewLib" : "org.yczbj:YCRefreshViewLib:2.5.6",
"YCStatusBarLib" : "cn.yc:YCStatusBarLib:1.4.0",
"YCVideoPlayerLib" : "cn.yc:YCVideoPlayerLib:2.6.6",
"YCThreadPoolLib" : "cn.yc:YCThreadPoolLib:1.3.2",
"notificationLib" : "cn.yc:notificationLib:1.0.3",
"WebViewLib" : "cn.yc:WebViewLib:1.1.7",
//tools
"eventbus" : "org.greenrobot:eventbus:3.0.0",
"dagger" : "com.google.dagger:dagger:2.13",
"utilcode" : "com.blankj:utilcode:1.12.5",
"easypermissions" : "pub.devrel:easypermissions:1.0.1",
]
}