-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.gradle
128 lines (116 loc) · 7.09 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
119
120
121
122
123
124
125
126
127
128
ext {
androidConfig = [
compileSdkVersion: 33,
buildToolsVersion: "34.0.0",
applicationId : "com.yollpoll.nmb",
minSdkVersion : 21,
targetSdkVersion : 33,
versionCode : 3,
versionName : "1.0.8"
]
dependVersion = [
arch : "0.0.3",
framework : "0.0.11",
arch_kapt : "0.0.4",
glide : "4.11.0",
glide_compiler : "4.5.0",
paging : "3.1.1",
pagingCompose : "1.0.0-alpha14",
lifeKtxVersion : "2.4.0",//官方kotlin扩展库版本
dataStore : "1.0.0",
moshi : "1.13.0",
moshiConvert : "2.7.1",
retrofit : "2.9.0",
gson : "2.8.6",
lifecycle_version : "2.4.0",
lifecycle_arch : "2.1.0",
logger : "2.2.0",
androidxKtx : "1.3.2",
appcompat : "1.1.0",
hilt : "2.37",
hilt_jetpack_version: "1.0.0-alpha01",
coroutines : "1.5.2",
work_manager : "2.7.1",
ativityKtx : "1.4.0",
moshiKapt : "1.13.0",
swipeRefresh : "1.1.0",
material : "1.5.0",
okhttp : "3.14.9",
room : "2.3.0"
]
//自建框架依赖
myArch = [
arch : "io.github.yollpoll:arch:${dependVersion.arch}",
framework: "io.github.yollpoll:framework:${dependVersion.framework}@aar",
arch_kapt: "io.github.yollpoll:kapt:${dependVersion.arch_kapt}"
]
//三方依赖
myDependencies = [
//appcompat
appcompat : "androidx.appcompat:appcompat:${dependVersion.appcompat}",
//androidx
androidxKtx : "androidx.core:core-ktx:${dependVersion.androidxKtx}",
//lifecycles
// ViewModel
// viewModel : "androidx.lifecycle:lifecycle-viewmodel-ktx:${dependVersion.lifecycle_version}",
// LiveData
liveData : "androidx.lifecycle:lifecycle-livedata-ktx:${dependVersion.lifecycle_version}",
// Lifecycles only (without ViewModel or LiveData)
lifycycles : "androidx.lifecycle:lifecycle-runtime-ktx:${dependVersion.lifecycle_version}",
// Saved state module for ViewModel
viewModelSaveState : "androidx.lifecycle:lifecycle-viewmodel-savedstate:${dependVersion.lifecycle_version}",
// Annotation processor,kapt
lifecycleProcessor : "androidx.lifecycle:lifecycle-compiler:${dependVersion.lifecycle_version}",
// alternately - if using Java8, use the following instead of lifecycle-compiler
lifecycleJava8 : "androidx.lifecycle:lifecycle-common-java8:${dependVersion.lifecycle_version}",
// optional - helpers for implementing LifecycleOwner in a Service
lifecycleService : "androidx.lifecycle:lifecycle-service:${dependVersion.lifecycle_version}",
// optional - ProcessLifecycleOwner provides a lifecycle for the whole application process
lifecycleProcess : "androidx.lifecycle:lifecycle-process:${dependVersion.lifecycle_version}",
// optional - ReactiveStreams support for LiveData
lifecycleStream : "androidx.lifecycle:lifecycle-reactivestreams-ktx:${dependVersion.lifecycle_version}",
// optional - Test helpers for LiveData,testImplementation
liveDataTestHelper : "androidx.arch.core:core-testing:${dependVersion.lifecycle_arch}",
activityKtx : "androidx.activity:activity-ktx:${dependVersion.ativityKtx}",
coroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${dependVersion.coroutines}",
//Glide
glide : "com.github.bumptech.glide:glide:${dependVersion.glide}",
glideCompiler : "com.github.bumptech.glide:compiler:${dependVersion.glide_compiler}",
//paging
pagingRuntimeKtx : "androidx.paging:paging-runtime-ktx:$dependVersion.paging",
// alternatively - without Android dependencies for tests
pagingTest : "androidx.paging:paging-common-ktx:$dependVersion.paging",
pagingCompose : "androidx.paging:paging-compose:$dependVersion.pagingCompose",
//lifecycle官方库ktx
viewModelKtx : "androidx.lifecycle:lifecycle-viewmodel-ktx:$dependVersion.lifeKtxVersion",
lifecycleruntimeKtx : "androidx.lifecycle:lifecycle-runtime-ktx:$dependVersion.lifeKtxVersion",
liveDataKtx : "androidx.lifecycle:lifecycle-livedata-ktx:$dependVersion.lifeKtxVersion",
//datastore
dataStore : "androidx.datastore:datastore:$dependVersion.dataStore",
dataStorePreferences : "androidx.datastore:datastore-preferences:$dependVersion.dataStore",
//json解析库Moshi
moshi : "com.squareup.moshi:moshi-kotlin:$dependVersion.moshi",
moshiConvert : "com.squareup.retrofit2:converter-moshi:$dependVersion.moshiConvert",
moshiKapt : "com.squareup.moshi:moshi-kotlin-codegen:$dependVersion.moshiKapt",
//retrofit
retrofit : "com.squareup.retrofit2:retrofit:$dependVersion.retrofit",
gsonConvert : "com.squareup.retrofit2:converter-gson:$dependVersion.retrofit",
//gson
gson : "com.google.code.gson:gson:$dependVersion.gson",
//logger
logger : "com.orhanobut:logger:${dependVersion.logger}",
//hilt
hilt : "com.google.dagger:hilt-android:$dependVersion.hilt",
hilt_kapt : "com.google.dagger:hilt-android-compiler:$dependVersion.hilt",
hilt_lifecycle_viewmodel: "androidx.hilt:hilt-lifecycle-viewmodel:$dependVersion.hilt_jetpack_version",
hilt_lifecycle_kapt : "androidx.hilt:hilt-compiler:$dependVersion.hilt_jetpack_version",
//workManager
work_manager : "androidx.work:work-runtime-ktx:$dependVersion.work_manager",
swipeRefresh : "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0",
material : "com.google.android.material:material:material",
okhttp : "com.squareup.okhttp3:okhttp:$dependVersion.okhttp",
roomRuntime : "androidx.room:room-runtime:$dependVersion.room",
roomCompiler : "androidx.room:room-compiler:$dependVersion.room",
roomKtx : "androidx.room:room-ktx:$dependVersion.room"
]
}