-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.gradle
executable file
·118 lines (102 loc) · 4.61 KB
/
config.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
ext {
module = [
/**
* isBuildModule 为 true 时可以使每个组件独立运行, false 则可以将所有组件集成到宿主 App 中
* isBuildModule=true
* 修改之后需要Sync方可生效
*/
isBuildModule: false,
]
android = [
applicationId : "com.bytebitx.wanandroid",
compileSdkVersion: 33,
buildToolsVersion: "30.0.3",
minSdkVersion : 21,
targetSdkVersion : 33,
versionCode : 1,
versionName : "1.0"
]
dependVersion = [
room_version : "2.4.0-alpha03",
hilt_version : "2.43.2",
glide_version : "4.13.2"
]
ktx = [
stdlib : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
core : "androidx.core:core-ktx:1.3.2",
coroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4",
runtime : "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
]
jetpack = [
viewmodel : "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1",
livedata : "androidx.lifecycle:lifecycle-livedata-ktx:2.5.1",
extension : "androidx.lifecycle:lifecycle-extensions:2.2.0",
fragment : "androidx.fragment:fragment-ktx:1.5.1",
activity : "androidx.activity:activity-ktx:1.5.1",
datastorePref : "androidx.datastore:datastore-preferences:1.0.0-rc02",
hilt : "com.google.dagger:hilt-android:${dependVersion.hilt_version}",
]
commonUI = [
appcompat : "androidx.appcompat:appcompat:1.4.2",
material : "com.google.android.material:material:1.6.1",
constrainlayout : "androidx.constraintlayout:constraintlayout:2.1.4",
freshlayout : "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0",
recyclerview : "androidx.recyclerview:recyclerview:1.2.1",
carview : "androidx.cardview:cardview:1.0.0"
]
net = [
retrofit : "com.squareup.retrofit2:retrofit:2.9.0",
converter : "com.squareup.retrofit2:converter-gson:2.9.0",
okhttp : "com.squareup.okhttp3:okhttp:4.9.0",
gson : "com.google.code.gson:gson:2.8.9"
]
room = [
runtime : "androidx.room:room-runtime:${dependVersion.room_version}",
roomktx : "androidx.room:room-ktx:${dependVersion.room_version}",
]
glide = [
glide : "com.github.bumptech.glide:glide:${dependVersion.glide_version}",
// glideHttp : "com.github.bumptech.glide:okhttp3-integration:4.11.0",
glideTransform : "jp.wasabeef:glide-transformations:4.3.0"
]
arouter = [
arouter : "com.alibaba:arouter-api:1.5.0",
]
other = [
// key-value
mmkv : "com.tencent:mmkv-static:1.2.7",
// permission
permission : "com.github.getActivity:XXPermissions:12.2",
// logger
logger : "com.jakewharton.timber:timber:5.0.1",
// arouter
arouter : "com.alibaba:arouter-api:1.5.0",
// banner
legacy : "androidx.legacy:legacy-support-v4:1.0.0",
banner : "com.github.bingoogolapple:BGABanner-Android:3.0.1",
//
rvHelper : "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6",
// agentWeb
agentWeb : "com.github.Justson.AgentWeb:agentweb-core:v4.1.9-androidx",
//Google开源的一个布局控件
flexbox : "com.google.android:flexbox:2.0.1",
// 沉浸式状态栏
statusBar : "io.github.bbggo:lib-statusbar:1.0.1",
// cookie持久化管理工具
cookieJar : "com.github.franmontiel:PersistentCookieJar:v1.0.1"
]
compiler = [
roomCompiler : "androidx.room:room-compiler:${dependVersion.room_version}",
glideCompiler : "com.github.bumptech.glide:compiler:${dependVersion.glide_version}",
arouterCompiler : "com.alibaba:arouter-compiler:1.2.2",
hiltAndroidCompiler : "com.google.dagger:hilt-android-compiler:${dependVersion.hilt_version}",
]
ktxLibs = ktx.values()
jetpackLibs = jetpack.values()
commonUILibs = commonUI.values()
netLibs = net.values()
roomLibs = room.values()
glideLibs = glide.values()
arouterLibs = arouter.values()
otherLibs = other.values()
}