Hi, i have created Kotlin native library using thi...
# android
n
Hi, i have created Kotlin native library using this tutorial -> https://medium.com/androidiots/the-magic-of-kotlin-native-part-2-49097c2dea1a, the problem is that I couldn't find a way how to include this .klib into Kotlin Multiplatform project (Android for start). I can include the lib with
Copy code
implementation(files("../shared/RandomJoke.klib"))
And the build is successfull, but the objects from library can not be imported into Common or Android main. Neither of the lines below can be resolved.
Copy code
import RandomJoke.*
import kotlinx.cinterop.*
What am I missing? Can this even be achived directly from commonMain? The code is plain C without any platform specific dependencies below.