Stefano Milani
01/13/2025, 8:47 AMAlex Styl
01/13/2025, 3:13 PMAlex Styl
01/13/2025, 3:14 PMStefano Milani
01/13/2025, 3:31 PMChrimaeon
01/13/2025, 8:23 PMStan van der Bend
01/15/2025, 2:27 AMStefano Milani
01/16/2025, 5:16 PMcommonMain.dependencies
that you use for material3?Stan van der Bend
01/16/2025, 5:30 PMimplementation(compose.material3)
The version of your jetbrains compose plugin should not matter (https://plugins.gradle.org/plugin/org.jetbrains.compose)
Let me know if that helps 😄, otherwise please share your build.gradle.kts and libs.version.toml and I can probably help you out moreStefano Milani
01/17/2025, 9:13 AMsourceSets {
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(compose.components.uiToolingPreview)
implementation(libs.androidx.lifecycle.viewmodel)
implementation(libs.androidx.lifecycle.runtime.compose)
}
}
and for toml:
[versions]
androidx-lifecycle = "2.8.4"
compose-multiplatform = "1.7.3"
junit = "4.13.2"
kotlin = "2.1.0"
[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-lifecycle-viewmodel = { group = "org.jetbrains.androidx.lifecycle", name = "lifecycle-viewmodel", version.ref = "androidx-lifecycle" }
androidx-lifecycle-runtime-compose = { group = "org.jetbrains.androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidx-lifecycle" }
[plugins]
composeMultiplatform = { id = "org.jetbrains.compose", version.ref = "compose-multiplatform" }
composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
... so just add implementation(compose.material3) in the commonMain.dependencies of sourceSet?Stan van der Bend
01/17/2025, 1:27 PMimplementation(compose.material3)
(notice the 3 at the end) below implementation(compose.material)
with no additional configuration needed.Stefano Milani
01/17/2025, 3:18 PMStan van der Bend
01/17/2025, 3:57 PMimplementation(compose.material3AdaptiveNavigationSuite)
Stan van der Bend
01/17/2025, 4:00 PMmaven("<https://maven.pkg.jetbrains.space/public/p/compose/dev/>")
Chrimaeon
01/17/2025, 4:00 PMAutoSizeText
is not part of the material 3 compose library.Chrimaeon
01/17/2025, 4:01 PMBasicText
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]pose/foundation/demos/text/ComposeText.kt?q=func:AutoSizeTextStan van der Bend
01/17/2025, 4:09 PMimplementation("org.jetbrains.compose.material3.adaptive:adaptive:1.1.0-alpha01")
@Stefano MilaniStefano Milani
01/20/2025, 7:07 AM