We’re just getting started with Kotlin Native and ...
# kotlin-native
r
We’re just getting started with Kotlin Native and Multiplatform. Is there a good sample where the Kotlin Native library is importing another iOS library? Our goal is then to export the Kotlin Native library, but not necessarily as a fat binary if that works
k
You want to call out to another iOS framework from K/N?
r
Yes, exactly
k
You need an interop sample, unless the ios library is one of the "standard" ones. Assume it's one your team is building?
Not exactly what you're talking about, but see how interop works with curl: https://github.com/JetBrains/kotlin-native/tree/master/samples/libcurl
r
Oh, exactly something like that 👍 That is helpful
k
The new multiplatform plugin has a different language for native. I'm no expert, but I'd start here: https://github.com/h0tk3y/k-new-mpp-samples/tree/master/native-cinterop

https://www.youtube.com/watch?v=WGhrQ3-xZSc

😅 1
r
Haha, thanks for help!