Skip to content

Commit 01f1706

Browse files
committed
Align material3 with Compose Multiplatform 1.12.0
The bump to Compose Multiplatform 1.12.0 left material3 at 1.9.0. On Android those two resolve to incompatible Jetpack artifacts: org.jetbrains.compose.foundation:foundation:1.12.0 -> androidx.compose.foundation:foundation:1.12.0 org.jetbrains.compose.material3:material3:1.9.0 -> androidx.compose.material3:material3:1.4.0 Material3 1.4.0 was compiled against the older signature of androidx.compose.foundation.style.CustomStyle.applyStyle, so composing any OutlinedTextField now fails with java.lang.AbstractMethodError: abstract method "void androidx.compose.foundation.style.CustomStyle.applyStyle( androidx.compose.foundation.style.CustomStyleScope)" on receiver OutlinedTextFieldDefaults$$ExternalSyntheticLambda0 which crashes the app when the settings bottom sheet pages to the AI provider or More tab. Under 1.11.1 this did not surface because foundation resolved to androidx foundation 1.11.2. The compatibility table for Compose Multiplatform 1.12.0 pairs it with material3 1.12.0-alpha03 (Jetpack Material3 1.5.0-alpha22), which is the first material3 built against foundation 1.12.x. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TUHLoZtpoBRJeebhbzz6fe
1 parent a7f1774 commit 01f1706

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jsJodaTimezone = "2.18.2"
3333
kotlinxSerialization = "1.11.0"
3434
ksafe = "3.0.0"
3535
logback = "1.6.3"
36-
material3 = "1.9.0"
36+
material3 = "1.12.0-alpha03" # must match composeMultiplatform, see https://github.com/JetBrains/compose-multiplatform/blob/master/CHANGELOG.md
3737
materialKolor = "5.0.0"
3838
workRuntimeKtx = "2.11.2"
3939
materialIconsExtended = "1.7.3"

0 commit comments

Comments
 (0)