plugins { kotlin("multiplatform") id("com.android.library") id("org.jetbrains.compose") } version = "1.0-SNAPSHOT" kotlin { androidTarget() jvm("desktop") js(IR) { browser() } listOf( macosX64(), macosArm64() ).forEach { macosTarget -> macosTarget.binaries { executable { entryPoint = "main" } } } listOf( iosX64(), iosArm64(), iosSimulatorArm64() ).forEach { iosTarget -> iosTarget.binaries.framework { baseName = "shared" isStatic = true } } sourceSets { all { languageSettings { optIn("org.jetbrains.compose.resources.ExperimentalResourceApi") } } commonMain.dependencies { implementation(compose.ui) implementation(compose.runtime) implementation(compose.foundation) implementation(compose.material3) implementation(compose.components.resources) } commonTest.dependencies { implementation(kotlin("test")) implementation(kotlin("test-annotations-common")) } androidMain.dependencies { api("androidx.activity:activity-compose:1.7.2") api("androidx.appcompat:appcompat:1.6.1") api("androidx.core:core-ktx:1.10.1") } val desktopMain by getting desktopMain.dependencies { implementation(compose.desktop.common) } } } android { compileSdk = 34 namespace = "org.jetbrains.Graphics2D" sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") defaultConfig { minSdk = 26 } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlin { jvmToolchain(17) } }