Skip to content

Commit

Permalink
build: compose bom.
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyroid committed May 7, 2024
1 parent d43fcf2 commit c204ce1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
5 changes: 2 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@ dependencies {

implementation(libs.androidx.core.core.ktx)
implementation(libs.androidx.appcompat.appcompat)
implementation(libs.androidx.compose.ui.ui)
api(libs.androidx.compose.runtime.runtime)
api(libs.androidx.compose.runtime)
implementation(libs.kotlinx.serialization.json)
implementation(libs.com.squareup.retrofit2.retrofit)
implementation(libs.androidx.media3.media3.exoplayer)
implementation(libs.androidx.media3.media3.session)
implementation(libs.com.google.dagger.hilt.android)
ksp(libs.com.google.dagger.hilt.compiler)

implementation(libs.kotlinx.serialization.json)

api(libs.kotlinx.datetime)
Expand Down
33 changes: 16 additions & 17 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ androidx-appcompat = "1.6.1"
androidx-activity = "1.9.0"
androidx-lifecycle = "2.7.0"
androidx-compose = "1.6.7"
androidx-compose-material3 = "1.2.1"
androidx-compose-bom = "2024.05.00"
androidx-compose-material3-adaptive = "1.0.0-alpha06"
androidx-constraintlayout-compose = "1.0.1"
androidx-navigation = "2.7.7"
Expand Down Expand Up @@ -62,21 +62,23 @@ androidx-lifecycle-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name
androidx-lifecycle-lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidx-lifecycle" }
androidx-lifecycle-lifecycle-process = { group = "androidx.lifecycle", name = "lifecycle-process", version.ref = "androidx-lifecycle" }

androidx-compose-ui-ui = { group = "androidx.compose.ui", name = "ui", version.ref = "androidx-compose" }
androidx-compose-ui-ui-util = { group = "androidx.compose.ui", name = "ui-util", version.ref = "androidx-compose" }
androidx-compose-ui-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "androidx-compose" }
androidx-compose-ui-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview", version.ref = "androidx-compose" }
androidx-compose-runtime-runtime = { group = "androidx.compose.runtime", name = "runtime", version.ref = "androidx-compose" }
androidx-compose-foundation-foundation = { group = "androidx.compose.foundation", name = "foundation", version.ref = "androidx-compose" }
androidx-compose-animation-animation = { group = "androidx.compose.animation", name = "animation", version.ref = "androidx-compose" }
androidx-compose-material-material-icons-extended = { group = "androidx.compose.material", name = "material-icons-extended", version.ref = "androidx-compose" }
androidx-navigation-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "androidx-navigation" }
androidx-constraintlayout-constraintlayout-compose = { group = "androidx.constraintlayout", name = "constraintlayout-compose", version.ref = "androidx-constraintlayout-compose" }
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "androidx-compose-bom" }
androidx-compose-foundation = { group = "androidx.compose.foundation", name = "foundation" }
androidx-compose-foundation-layout = { group = "androidx.compose.foundation", name = "foundation-layout" }
androidx-compose-material-iconsExtended = { group = "androidx.compose.material", name = "material-icons-extended" }
androidx-compose-material3 = { group = "androidx.compose.material3", name = "material3" }
androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime" }
androidx-compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
androidx-compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
androidx-compose-ui-util = { group = "androidx.compose.ui", name = "ui-util" }

androidx-compose-material3-material3-window-size-clazz = { group = "androidx.compose.material3", name = "material3-window-size-class" }

androidx-compose-material3-material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "androidx-compose-material3" }
androidx-compose-material3-material3-window-size-clazz = { group = "androidx.compose.material3", name = "material3-window-size-class", version.ref = "androidx-compose-material3" }
androidx-compose-material3-material3-adaptive = { group = "androidx.compose.material3", name = "material3-adaptive", version.ref = "androidx-compose-material3-adaptive" }

androidx-navigation-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "androidx-navigation" }
androidx-constraintlayout-constraintlayout-compose = { group = "androidx.constraintlayout", name = "constraintlayout-compose", version.ref = "androidx-constraintlayout-compose" }

androidx-paging-compose = { module = "androidx.paging:paging-compose", version.ref = "androidx-paging-compose" }
androidx-paging-runtime-ktx = { module = "androidx.paging:paging-runtime-ktx", version.ref = "androidx-paging-runtime-ktx" }
androidx-tv-tv-foundation = { group = "androidx.tv", name = "tv-foundation", version.ref = "androidx-tv" }
Expand Down Expand Up @@ -164,7 +166,4 @@ com-google-dagger-hilt-android = { id = "com.google.dagger.hilt.android", versio
com-google-devtools-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp-plugin" }
com-android-test = { id = "com.android.test", version.ref = "android-gradle-plugin" }
androidx-baselineprofile = { id = "androidx.baselineprofile", version.ref = "androidx-benchmark" }
org-jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }

[bundles]
androidx-compose = ["androidx-compose-ui-ui", "androidx-compose-ui-ui-util", "androidx-compose-runtime-runtime", "androidx-compose-foundation-foundation", "androidx-compose-animation-animation"]
org-jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
17 changes: 12 additions & 5 deletions material/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@ dependencies {

implementation(libs.androidx.lifecycle.lifecycle.runtime.ktx)

api(libs.bundles.androidx.compose)
api(libs.androidx.compose.material.material.icons.extended)
api(libs.androidx.compose.material3.material3)
api(platform(libs.androidx.compose.bom))
api(libs.androidx.compose.foundation)
api(libs.androidx.compose.foundation.layout)
api(libs.androidx.compose.material.iconsExtended)
api(libs.androidx.compose.material3)
api(libs.androidx.compose.runtime)
api(libs.androidx.compose.ui.util)

androidTestImplementation(platform(libs.androidx.compose.bom))
api(libs.androidx.compose.ui.tooling.preview)
debugApi(libs.androidx.compose.ui.tooling)

api(libs.androidx.compose.material3.material3.window.size.clazz)
api(libs.androidx.constraintlayout.constraintlayout.compose)
debugApi(libs.androidx.compose.ui.ui.tooling)
debugApi(libs.androidx.compose.ui.ui.tooling.preview)

api(libs.androidx.navigation.navigation.compose)

Expand Down

0 comments on commit c204ce1

Please sign in to comment.