Skip to content

Commit 37f4201

Browse files
committed
nitpick: make the version catalog file more readable
1 parent b31940e commit 37f4201

File tree

1 file changed

+38
-19
lines changed

1 file changed

+38
-19
lines changed

gradle/libs.versions.toml

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
[versions]
2+
# Build tools & plugins
23
gradle = "8.10.1"
3-
coroutines = "1.7.3"
4-
firebaseBom = "32.8.0"
5-
hilt = "2.56.2"
6-
jacoco = "0.8.8"
74
kotlin = "2.1.20"
8-
material = "1.12.0"
9-
mockk = "1.14.2"
10-
composeBom = "2023.06.01"
5+
jacoco = "0.8.8"
6+
7+
# AndroidX
118
appcompat = "1.7.0"
129
coreKtx = "1.16.0"
1310
constraintlayout = "2.2.1"
@@ -16,7 +13,29 @@ lifecycleViewmodelKtx = "2.8.7"
1613
lifecycleExtensions = "2.2.0"
1714
activityCompose = "1.10.1"
1815
datastorePreferences = "1.1.4"
16+
17+
# Compose
18+
composeBom = "2023.06.01"
19+
20+
# Google/Material
21+
material = "1.12.0"
22+
23+
# Firebase
24+
firebaseBom = "32.8.0"
25+
26+
# Dagger/Hilt
27+
hilt = "2.56.2"
28+
hiltAndroidTesting = "2.56.2"
29+
30+
# Coroutines
31+
coroutines = "1.7.3"
32+
33+
# USB Serial
34+
usbSerial = "6.1.1"
35+
36+
# Testing
1937
junit = "4.13.2"
38+
mockk = "1.14.2"
2039
testCore = "1.6.1"
2140
testExtJunit = "1.2.1"
2241
testExtJunitKtx = "1.2.1"
@@ -26,11 +45,10 @@ testRunner = "1.6.2"
2645
testRules = "1.6.1"
2746
truth = "1.1.3"
2847
androidxTruth = "1.6.0"
29-
hiltAndroidTesting = "2.56.2"
30-
usbSerial = "6.1.1"
3148

3249
[libraries]
33-
# AndroidX
50+
51+
# --- AndroidX ---
3452
appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
3553
core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
3654
constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
@@ -40,42 +58,42 @@ lifecycle-extensions = { module = "androidx.lifecycle:lifecycle-extensions", ver
4058
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }
4159
datastore-preferences = { module = "androidx.datastore:datastore-preferences", version.ref = "datastorePreferences" }
4260

43-
# Compose
61+
# --- Compose ---
4462
compose-bom = { module = "androidx.compose:compose-bom", version.ref = "composeBom" }
4563
compose-foundation = { module = "androidx.compose.foundation:foundation" }
4664
compose-material3 = { module = "androidx.compose.material3:material3" }
4765
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
4866
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
4967

50-
# Google Material
68+
# --- Google/Material ---
5169
material = { module = "com.google.android.material:material", version.ref = "material" }
5270

53-
# Firebase
71+
# --- Firebase ---
5472
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebaseBom" }
5573
firebase-analytics-ktx = { module = "com.google.firebase:firebase-analytics-ktx" }
5674
firebase-crashlytics-ktx = { module = "com.google.firebase:firebase-crashlytics-ktx" }
5775

58-
# Dagger Hilt
76+
# --- Dagger/Hilt ---
5977
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
6078
hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hilt" }
6179
hilt-android-testing = { module = "com.google.dagger:hilt-android-testing", version.ref = "hiltAndroidTesting" }
6280
hilt-android-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hiltAndroidTesting" }
6381

64-
# Coroutines
82+
# --- Coroutines ---
6583
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
6684
coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
6785
coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
6886

69-
# USB Serial
87+
# --- USB Serial ---
7088
usb-serial = { module = "com.github.superus8r:UsbSerial", version.ref = "usbSerial" }
7189

72-
# Unit Test
90+
# --- Unit Test ---
7391
junit = { module = "junit:junit", version.ref = "junit" }
7492
mockk-android = { module = "io.mockk:mockk-android", version.ref = "mockk" }
7593
mockk-agent = { module = "io.mockk:mockk-agent", version.ref = "mockk" }
7694
truth = { module = "com.google.truth:truth", version.ref = "truth" }
7795

78-
# Instrumented Test
96+
# --- Instrumented Test ---
7997
androidx-test-core = { module = "androidx.test:core", version.ref = "testCore" }
8098
androidx-test-ext-junit = { module = "androidx.test.ext:junit", version.ref = "testExtJunit" }
8199
androidx-test-ext-junit-ktx = { module = "androidx.test.ext:junit-ktx", version.ref = "testExtJunitKtx" }
@@ -85,12 +103,13 @@ androidx-test-runner = { module = "androidx.test:runner", version.ref = "testRun
85103
androidx-test-rules = { module = "androidx.test:rules", version.ref = "testRules" }
86104
androidx-test-truth = { module = "androidx.test.ext:truth", version.ref = "androidxTruth" }
87105

88-
# Plugins (buildScript dependencies)
106+
# --- Plugins (classpath dependencies) ---
89107
hilt-android-gradle-plugin = { module = "com.google.dagger:hilt-android-gradle-plugin", version.ref = "hilt" }
90108
google-services = { module = "com.google.gms:google-services", version = "4.4.1" }
91109
firebase-crashlytics-gradle = { module = "com.google.firebase:firebase-crashlytics-gradle", version = "2.9.9" }
92110

93111
[plugins]
112+
# --- Gradle Plugins ---
94113
android-application = { id = "com.android.application", version.ref = "gradle" }
95114
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
96115
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }

0 commit comments

Comments
 (0)