Smoothie
04/01/2025, 2:35 PMcommonMain.dependencies {
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.coroutines.core)
api(project(":JsonUtilities"))
api(project(":PlatformUtilities"))
}
Is it possible in the xcframework exported by this project (the one using these two dependencies) to not embed them ? So the final xcframework would depend on these two xcframework ?
my conf right now is this
val xcf = XCFramework("MyLibrary")
listOf(
iosArm64(),
iosSimulatorArm64()
).forEach { target ->
target.binaries.framework {
baseName = "MyLibrary"
isStatic = true
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
optimized = true
export(project(":JsonUtilities"))
export(project(":PlatformUtilities"))
xcf.add(this)
}
}
Is it also possible to make kotlin itself in a xcframework to avoid conflict and inconpatible type ?
TySmoothie
04/01/2025, 3:54 PM