kevin
04/29/2024, 10:33 AMzsmb
04/29/2024, 10:33 AMzsmb
04/29/2024, 10:35 AMcommonMain
as of 1.6.0, but you'll be able to put them under other source sets like desktopMain
once 1.6.10 comes outkevin
04/29/2024, 10:51 AMsourceSets {
create("commonMain") {
kotlin.srcDirs("src/commonMain")
}
}
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(compose.components.resources)
}
}
}
}
I’m using Compose 1.6.2zsmb
04/29/2024, 10:59 AMkotlin {
jvm("desktop")
sourceSets {
val desktopMain by getting
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(compose.components.uiToolingPreview)
}
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
}
}
}
kevin
04/29/2024, 1:29 PMzsmb
04/29/2024, 2:18 PM