Last active
August 29, 2023 16:15
-
-
Save ReactorboY/3154bad9ca5668ea370f6649a5d21cda to your computer and use it in GitHub Desktop.
Common Android Gradle Dependencies in Version Catalog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[versions] | |
agp = "8.1.1" | |
datastorePreferences = "1.0.0" | |
hiltAndroid = "2.47" | |
org-jetbrains-kotlin-android = "1.8.10" | |
core-ktx = "1.9.0" | |
junit = "4.13.2" | |
androidx-test-ext-junit = "1.1.5" | |
espresso-core = "3.5.1" | |
lifecycle-runtime-ktx = "2.6.1" | |
activity-compose = "1.7.2" | |
compose-bom = "2023.06.01" | |
# Play | |
playLocationServiceVersion = "21.0.1" | |
#Nav | |
navVersion = "2.6.0" # 2.7.0 only works for target 34 | |
hiltNavigation = "1.0.0" | |
#Core | |
splashVersion = "1.0.1" | |
# Room | |
roomVersion = "2.5.2" | |
[libraries] | |
androidx-datastore-preferences = { module = "androidx.datastore:datastore-preferences", version.ref = "datastorePreferences" } | |
junit = { group = "junit", name = "junit", version.ref = "junit" } | |
androidx-test-ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-ext-junit" } | |
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso-core" } | |
lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycle-runtime-ktx" } | |
lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "lifecycle-runtime-ktx" } | |
activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activity-compose" } | |
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" } | |
ui = { group = "androidx.compose.ui", name = "ui" } | |
ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" } | |
ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" } | |
ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" } | |
ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" } | |
ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" } | |
material3 = { group = "androidx.compose.material3", name = "material3" } | |
# Hilt | |
hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hiltAndroid" } | |
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hiltAndroid" } | |
# Room | |
room-runtime = { group = "androidx.room", name ="room-runtime", version.ref = "roomVersion"} | |
room-ktx = { group = "androidx.room", name ="room-ktx", version.ref = "roomVersion"} | |
room-compiler = { group = "androidx.room", name ="room-compiler", version.ref = "roomVersion"} | |
# Core | |
core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "core-ktx" } | |
splash = { group = "androidx.core", name = "core-splashscreen", version.ref = "splashVersion" } | |
# Play | |
play-core = {group = "com.google.android.gms", name = "play-services-location", version.ref = "playLocationServiceVersion"} | |
# Navigation | |
navigation-core = { group = "androidx.navigation", name = "navigation-compose", version.ref = "navVersion"} | |
navigation-hilt = {group = "androidx.hilt", name = "hilt-navigation-compose", version.ref = "hiltNavigation"} | |
[plugins] | |
com-android-application = { id = "com.android.application", version.ref = "agp" } | |
org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "org-jetbrains-kotlin-android" } | |
com-hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "hiltAndroid" } | |
[bundles] | |
# Nav | |
navigation = ["navigation-core", "navigation-hilt"] | |
# lifecycle | |
lifecycle = ["lifecycle-runtime-ktx", "lifecycle-runtime-compose"] | |
# Room | |
room = ["room-runtime", "room-ktx"] | |
# Core | |
core = ["splash", "core-ktx", "play-core"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment