Files
zemion db873063f8
Verify source and build Android / android (push) Canceled after 0s
initial commit v 0.2.0
2026-09-24 22:49:27 +02:00

22 lines
796 B
Kotlin

import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
plugins { alias(libs.plugins.kotlin.multiplatform) }
kotlin {
jvm()
jvmToolchain(17)
// Pure common Kotlin. Android consumes the JVM variant, not an Android-dependent core.
// Apple targets are opt-in so Android/Linux development never needs an Apple toolchain.
if (providers.gradleProperty("enableIos").orNull == "true") {
val xc = XCFramework("FileworkbenchCore")
listOf(iosArm64(), iosSimulatorArm64()).forEach { target ->
target.binaries.framework {
baseName = "FileworkbenchCore"
isStatic = true
xc.add(this)
}
}
}
sourceSets {
commonTest.dependencies { implementation(kotlin("test")) }
}
}