-
Notifications
You must be signed in to change notification settings - Fork 168
/
Copy pathsettings.gradle
94 lines (83 loc) · 5.69 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
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
enableFeaturePreview("VERSION_CATALOGS")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
jcenter() // Warning: this repository is going to shut down soon
flatDir {
dirs './libs'
}
}
versionCatalogs {
// https://juejin.cn/post/6997396071055900680
libs {
version('compileSdk', '31')
version('targetSdk', '31')
version('minSdk', '21')
version('versionCode', '202008171')
version('versionName', '4.5.0')
version('kotlin', '1.6.21')
version('kotlinx', '1.6.1')
version('hilt', '2.42')
version('camerax', '1.1.0-rc01')
version('qmui', '2.0.1')
version('okhttp', '4.9.3')
version('retrofit', '2.9.0')
version('glide', '4.13.2')
version('smartrefresh', '2.0.5')
version('arouter', '1.5.2')
alias('androidx-appcompat').to('androidx.appcompat:appcompat:1.4.1')
alias('androidx-constraintlayout').to('androidx.constraintlayout:constraintlayout:2.1.4')
alias('androidx-core').to('androidx.core:core-ktx:1.7.0')
alias('androidx-lifecycle-runtime').to('androidx.lifecycle:lifecycle-runtime-ktx:2.4.1')
alias('androidx-lifecycle-viewmodel').to('androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1')
alias('androidx-lifecycle-livedata').to('androidx.lifecycle:lifecycle-livedata-ktx:2.4.1')
alias('androidx-startup-runtime').to('androidx.startup:startup-runtime:1.1.1')
alias('androidx-camera-camera2').to('androidx.camera', 'camera-camera2').versionRef('camerax')
alias('androidx-camera-view').to('androidx.camera', 'camera-view').versionRef('camerax')
alias('androidx-camera-extensions').to('androidx.camera', 'camera-extensions').versionRef('camerax')
alias('androidx-camera-lifecycle').to('androidx.camera', 'camera-lifecycle').versionRef('camerax')
alias('kotlin-stdlib').to('org.jetbrains.kotlin', 'kotlin-stdlib').versionRef('kotlin')
alias('kotlinx-coroutines-core').to('org.jetbrains.kotlinx', 'kotlinx-coroutines-core').versionRef('kotlinx')
alias('kotlinx-coroutines-android').to('org.jetbrains.kotlinx', 'kotlinx-coroutines-android').versionRef('kotlinx')
alias('google-material').to('com.google.android.material:material:1.6.0')
alias('google-gson').to('com.google.code.gson:gson:2.8.6')
alias('google-zxing').to('com.google.zxing:core:3.4.0')
alias('hilt-android').to('com.google.dagger', 'hilt-android').versionRef('hilt')
alias('hilt-compiler').to('com.google.dagger', 'hilt-compiler').versionRef('hilt')
alias('eventbus').to('org.greenrobot:eventbus:3.2.0')
alias('retrofit-core').to('com.squareup.retrofit2', 'retrofit').versionRef('retrofit')
alias('retrofit-converter-gson').to('com.squareup.retrofit2', 'converter-gson').versionRef('retrofit')
alias('retrofit-converter-scalars').to('com.squareup.retrofit2', 'converter-scalars').versionRef('retrofit')
alias('okhttp-core').to('com.squareup.okhttp3', 'okhttp').versionRef('okhttp')
alias('okhttp-urlconnection').to('com.squareup.okhttp3', 'okhttp-urlconnection').versionRef('okhttp')
alias('okhttp-logging').to('com.squareup.okhttp3', 'logging-interceptor').versionRef('okhttp')
alias('qmui-core').to('com.qmuiteam', 'qmui').versionRef('qmui')
alias('brvah').to('com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.7')
alias('smartrefresh-core').to('io.github.scwang90', 'refresh-layout-kernel').versionRef('smartrefresh')
alias('smartrefresh-header').to('io.github.scwang90', 'refresh-header-classics').versionRef('smartrefresh')
alias('smartrefresh-footer').to('io.github.scwang90', 'refresh-footer-classics').versionRef('smartrefresh')
alias('glide-core').to('com.github.bumptech.glide', 'glide').versionRef('glide')
alias('glide-integration-okhttp3').to('com.github.bumptech.glide', 'okhttp3-integration').versionRef('glide')
alias('glide-compiler').to('com.github.bumptech.glide', 'compiler').versionRef('glide')
alias('androidsvg').to('com.caverock:androidsvg-aar:1.4')
alias('photoView').to('com.github.chrisbanes:PhotoView:2.3.0')
alias('matisse').to('com.zhihu.android:matisse:0.5.3-beta3')
alias('permissionx').to('com.guolindev.permissionx:permissionx:1.6.4')
alias('utilcodex').to('com.blankj:utilcodex:1.31.0')
alias('agentweb-core').to('com.github.Justson.AgentWeb:agentweb-core:v5.0.0-alpha.1-androidx')
alias('arouter-api').to('com.alibaba', 'arouter-api').versionRef('arouter')
alias('arouter-compiler').to('com.alibaba', 'arouter-compiler').versionRef('arouter')
alias('wechat').to('com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0')
alias('bugly').to('com.tencent.bugly:crashreport_upgrade:1.5.23')
bundle('core', ['androidx-appcompat', 'androidx-core', 'kotlin-stdlib'])
bundle('cameraX', ['androidx-camera-camera2', 'androidx-camera-view', 'androidx-camera-extensions', 'androidx-camera-lifecycle'])
bundle('okhttp', ['okhttp-core', 'okhttp-urlconnection', 'okhttp-logging'])
bundle('retrofit', ['retrofit-core', 'retrofit-converter-gson', 'retrofit-converter-scalars'])
}
}
}
rootProject.name = "AndroidQuick"
apply from: './settings-modules.gradle'