Does amper support creation of native cinterop? I couldn’t find any examples of it
a
Anton Prokhorov
01/02/2024, 5:25 PM
No, for now, Amper doesn't support native cinterop natively,
But you could use gradle interop workaround for a while:
Copy code
// build.gradle.kts alongside module.yaml
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
kotlin {
targets.filterIsInstance<KotlinNativeTarget>().forEach {
it.compilations.getByName("main").cinterops {
val libcurl by creating // just for example
}
}
}