plugins { id("com.android.library") kotlin("multiplatform") kotlin("plugin.compose") id("org.jetbrains.compose") } kotlin { android() jvm("desktop") sourceSets { named("commonMain") { dependencies { api(compose.runtime) api(compose.foundation) api(compose.material) // Needed only for preview. implementation(compose.preview) } } named("androidMain") { dependencies { api("androidx.appcompat:appcompat:1.5.1") api("androidx.core:core-ktx:1.8.0") } } } } android { compileSdk = 34 namespace = "com.myapplication.common" defaultConfig { minSdk = 26 } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlin { jvmToolchain(17) } sourceSets { named("main") { manifest.srcFile("src/androidMain/AndroidManifest.xml") res.srcDirs("src/androidMain/res") } } }