Skip to content

Commit fcac9b5

Browse files
author
masashi
committed
fix: declare material-icons-core for the sample app
sample-app が Icons.AutoMirrored を使うが、material3 は material-icons を推移的に持ってこないため単体ビルドで Unresolved reference 'Icons' になる。版は compose BOM 任せで、集約ビルドの catalog と同じ形にする。
1 parent 983d4a0 commit fcac9b5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ androidx-lifecycle-common-java8 = { group = "androidx.lifecycle", name = "lifecy
3131
# Sample app
3232
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
3333
androidx-material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "material3" }
34+
# sample-app が Icons.AutoMirrored を使う。material3 は material-icons を推移的に持ってこないので
35+
# 明示的に足す。版は compose BOM 任せ(集約ビルドの catalog と同じ形)。
36+
androidx-material-icons-core = { group = "androidx.compose.material", name = "material-icons-core" }
3437
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "composeLibs" }
3538

3639
# Test

sample-app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ dependencies {
6464
implementation(libs.androidx.ui)
6565
implementation(libs.androidx.ui.tooling.preview)
6666
implementation(libs.androidx.material3)
67+
implementation(libs.androidx.material.icons.core)
6768
debugImplementation(platform(libs.androidx.compose.bom))
6869
debugImplementation(libs.androidx.ui.tooling)
6970
}

0 commit comments

Comments
 (0)