From 5b3f9e082e715fe4227b0a0405e823a43f6abe34 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Thu, 27 Oct 2022 05:12:32 +0700 Subject: [PATCH] Use new Compose BOM 2022.10.00 (#8295) --- app/build.gradle.kts | 1 + gradle/compose.versions.toml | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 0cb77bcd20..ddff0f7dc1 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -163,6 +163,7 @@ dependencies { implementation(project(":source-api")) // Compose + implementation(platform(compose.bom)) implementation(compose.activity) implementation(compose.foundation) implementation(compose.material3.core) diff --git a/gradle/compose.versions.toml b/gradle/compose.versions.toml index 732bc4dc50..65db619ba0 100644 --- a/gradle/compose.versions.toml +++ b/gradle/compose.versions.toml @@ -1,20 +1,20 @@ [versions] compiler = "1.3.2" -compose = "1.2.1" -accompanist = "0.25.1" -material3 = "1.0.0-rc01" +compose-bom = "2022.10.00" +accompanist = "0.27.0" [libraries] activity = "androidx.activity:activity-compose:1.6.0" -foundation = { module = "androidx.compose.foundation:foundation", version.ref = "compose" } -animation = { module = "androidx.compose.animation:animation", version.ref = "compose" } -animation-graphics = { module = "androidx.compose.animation:animation-graphics", version.ref = "compose" } -ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" } -ui-util = { module = "androidx.compose.ui:ui-util", version.ref = "compose" } +bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" } +foundation = { module = "androidx.compose.foundation:foundation" } +animation = { module = "androidx.compose.animation:animation" } +animation-graphics = { module = "androidx.compose.animation:animation-graphics" } +ui-tooling = { module = "androidx.compose.ui:ui-tooling" } +ui-util = { module = "androidx.compose.ui:ui-util" } -material3-core = { module = "androidx.compose.material3:material3", version.ref = "material3" } -material3-adapter = "com.google.android.material:compose-theme-adapter-3:1.0.20" -material-icons = { module = "androidx.compose.material:material-icons-extended", version.ref = "compose" } +material3-core = { module = "androidx.compose.material3:material3" } +material3-adapter = "com.google.android.material:compose-theme-adapter-3:1.0.21" +material-icons = { module = "androidx.compose.material:material-icons-extended" } accompanist-webview = { module = "com.google.accompanist:accompanist-webview", version.ref = "accompanist" } accompanist-swiperefresh = { module = "com.google.accompanist:accompanist-swiperefresh", version.ref = "accompanist" }