-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdependencies-common.toml
83 lines (75 loc) · 3.74 KB
/
dependencies-common.toml
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
[versions]
# build config
compileSdk = "33"
minSdk = "23"
targetSdk = "33"
java-major = "11"
java = "11"
config-plugin = "0.1.2"
versionCode="1"
versionName="1.0.0"
applicationId="com.symbol.composehello"
# official library
kotlin = "1.8.21"
kotlin-coroutines = "3.2.3"
ktor = "1.6.7"
android-plugin = "8.0.1"
androidx-appcompat = "1.4.0"
lifecycle = "2.3.1"
compose = "1.2.1"
accompanist = "0.21.2-beta"
hilt = "2.40.5"
hilt-compose = "1.0.0-beta01"
room = "2.3.0"
# test
junit = "4.13.2"
androidx-junit = "1.1.3"
espresso-core = "3.4.0"
androidx-test = "1.4.0"
androidGradlePlugin = "7.4.0"
ksp = "1.8.10-1.0.9"
[libraries]
# official library
appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
androidx-lifecycle-runtime-ktx = "androidx.lifecycle:lifecycle-runtime-ktx:2.4.0"
kotlin-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlin-coroutines" }
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
# plugin dependencies
plugin-source-android = { module = "com.android.tools.build:gradle", version.ref = "android-plugin" }
plugin-source-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
# composef
androidx-activity-compose = "androidx.activity:activity-compose:1.4.0"
compose-uiTooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
compose-material = { module = "androidx.compose.material3:material3", version = "1.0.0-alpha02" }
compose-icons-extended = { module = "androidx.compose.material:material-icons-extended", version.ref = "compose" }
compose-paging = "androidx.paging:paging-compose:1.0.0-alpha14"
compose-navigation = "androidx.navigation:navigation-compose:2.4.0-beta02"
compose-flowLayout = { module = "com.google.accompanist:accompanist-flowlayout", version.ref = "accompanist" }
compose-navigationAnimiaton = { module = "com.google.accompanist:accompanist-navigation-animation", version.ref = "accompanist" }
compose-placeholder = { module = "com.google.accompanist:accompanist-placeholder-material", version.ref = "accompanist" }
# room
room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
#kotlin
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
android-gradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin" }
kotlin-gradlePlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
[plugins]
android-application = { id = "com.android.application", version.ref = "android-plugin" }
android-library = { id = "com.android.library", version.ref = "android-plugin" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
hilt-android = { id = "dagger.hilt.android.plugin", version.ref = "hilt" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
# 一组依赖
[bundles]
compose-core = ["androidx-activity-compose", "compose-uiTooling", "compose-material"]
compose-navigation = ["compose-navigation", "compose-navigationAnimiaton"]
compose-jetpack = ["compose-paging"]
room = ["room-runtime", "room-ktx"]