Does amper support creation of native cinterop? I ...
# amper
k
Does amper support creation of native cinterop? I couldn’t find any examples of it
a
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
        }

    }
}