My C knowledge is severely limited so this questio...
# multiplatform
g
My C knowledge is severely limited so this question might be a bit dumb but.... Is it possible to compile a KMM module to a single C artifact? Right now I build an XCFramework and .aar file but I was wondering if it's possible to output a single C library which then could be invoked through ffi (dart). Right now my project uses methodchannels but that has (de)serialisation overhead so using ffi would be more performant. So far all I can find is using C in KMM but I actually would want it the other way around including platform specific code.
j
See this tutorial in the docs for how to compile Kotlin/Native to a native C dynamic library .so, .dylib, or .dll.