Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

- add bundles section to version catalog [#918] #927

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 11 additions & 34 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -111,53 +111,30 @@ androidComponents {
dependencies {
ksp(libs.androidx.room.compiler)
ksp(libs.hilt.android.compiler)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.livedata.ktx)
implementation(libs.androidx.lifecycle.viewmodel.ktx)
implementation(libs.androidx.navigation.compose)
implementation(libs.androidx.paging.compose)
implementation(libs.androidx.room.ktx)
implementation(libs.androidx.work.runtime.ktx)
implementation(libs.bundles.retrofit)
implementation(libs.bundles.coroutines)
implementation(libs.bundles.hilt)
implementation(libs.bundles.androidx.impl)
implementation(libs.bundles.lifecycle)
implementation(libs.bundles.room)
implementation(libs.material)
implementation(libs.gson)
implementation(libs.okhttp3.logging.interceptor)
implementation(libs.retrofit2.converter.gson)
implementation(libs.retrofit2)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.hilt.android)
implementation(libs.hilt.navigation.compose)
implementation(libs.androidx.profileinstaller)
implementation(libs.androidx.work.runtime.ktx)
implementation(libs.androidx.paging.compose)

// Compose
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.activity.compose)
implementation(libs.androidx.constraintlayout.compose)
implementation(libs.androidx.compose.runtime)
implementation(libs.androidx.compose.ui)
implementation(libs.androidx.compose.foundation)
implementation(libs.androidx.compose.foundation.layout)
implementation(libs.androidx.compose.material3)
implementation(libs.androidx.compose.ui.viewbinding)
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.androidx.compose.runtime.livedata)
implementation(libs.androidx.lifecycle.viewmodel.compose)
implementation(libs.bundles.compose)
implementation(libs.glide)
implementation(libs.accompanist.systemuicontroller)
debugImplementation(libs.androidx.compose.ui.tooling)

// Testing dependencies
androidTestImplementation(libs.bundles.espresso)
androidTestImplementation(libs.bundles.androidx.test)
debugImplementation(libs.androidx.monitor)
kspAndroidTest(libs.hilt.android.compiler)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.arch.core.testing)
androidTestImplementation(libs.androidx.espresso.contrib)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.androidx.espresso.intents)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.androidx.test.uiautomator)
androidTestImplementation(libs.androidx.work.testing)
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
androidTestImplementation(libs.guava)
androidTestImplementation(libs.hilt.android.testing)
androidTestImplementation(libs.accessibility.test.framework)
Expand Down
18 changes: 17 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,21 @@ android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin"}
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }

[bundles]
androidx-impl = ["androidx-core-ktx", "androidx-profileinstaller"]
coroutines = ["kotlinx-coroutines-android", "kotlinx-coroutines-core"]
hilt = ["hilt-android", "hilt-navigation-compose"]
room = ["androidx-room-ktx", "androidx-room-runtime"]
retrofit = ["retrofit2", "retrofit2-converter-gson"]
compose = ["androidx-compose-foundation", "androidx-compose-foundation-layout", "androidx-compose-material",
"androidx-compose-material3", "androidx-compose-runtime", "androidx-compose-runtime-livedata",
"androidx-compose-ui", "androidx-compose-ui-tooling-preview",
"androidx-compose-ui-viewbinding", "androidx-constraintlayout-compose",
"accompanist-systemuicontroller", "androidx-activity-compose", "androidx-navigation-compose"]
lifecycle = ["androidx-lifecycle-viewmodel-compose", "androidx-lifecycle-livedata-ktx", "androidx-lifecycle-viewmodel-ktx"]
espresso = ["androidx-espresso-contrib", "androidx-espresso-core", "androidx-espresso-intents"]
androidx-test = ["androidx-arch-core-testing", "androidx-test-ext-junit", "androidx-test-uiautomator",
"androidx-work-testing", "androidx-compose-ui-test-junit4"]