Thought about it too, but, from their website, "Kotlin/Native supports interoperability to use existing libraries directly from Kotlin/Native:
C, Swift, and Objective-C frameworks", what I need instead is to use a C++ library, and I don't quite understand how to use Kotlin Native in this case, any suggestions?
d
Dominaezzz
06/18/2019, 7:42 PM
Make a C wrapper.
a
ArtemHevorhian
06/18/2019, 8:53 PM
Thanks, I will try it.
d
Dico
06/18/2019, 10:27 PM
Use JNA
Dico
06/18/2019, 10:28 PM
If you are not worried about performance, JNA is superior to anything else
a
ArtemHevorhian
06/18/2019, 11:10 PM
Could anyone also help with the Gradle setup to use JNA? I have a C wrapper now, I have to automate the building process