You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
1.1 KiB

plugins {
id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.compose"
}
kotlin {
iosX64 {
binaries.framework {
baseName = "shared"
isStatic = true
}
}
iosArm64 {
binaries.framework {
baseName = "shared"
isStatic = true
}
}
iosSimulatorArm64 {
binaries.framework {
baseName = "shared"
isStatic = true
}
}
sourceSets {
def commonMain = named("commonMain") {
dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.components.resources)
}
}
def iosMain = create("iosMain") {
dependsOn(commonMain.get())
}
named("iosX64Main") {
dependsOn(iosMain)
}
named("iosArm64Main") {
dependsOn(iosMain)
}
named("iosSimulatorArm64Main") {
dependsOn(iosMain)
}
}
}