kotlinforandroid
01/06/2024, 12:23 PMbuild-logic
that applies the Jetbrains Compose libraries. But trying it this way results in an error. There is no KotlinMultiplatformExtension#compose
property available.
class KmpComposePlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("kmp")
apply("org.jetbrains.compose")
}
val extension = extensions.getByType<KotlinMultiplatformExtension>()
with(extension) {
jvm()
sourceSets.commonMain.dependencies {
implementation(this@with.compose.runtime)
}
}
}
}
}
Pablichjenkov
01/06/2024, 12:34 PMChrimaeon
01/06/2024, 1:11 PM