Can someone show me how to use KN implementation in Android JVM activities with JNI?
Imagine if one used KN and C-libraries for the app core logic, for example, network request, json-parsing and view state machine. I jues one can use it with the rest of JVM-android part via JNI.
I suppose reusing it in IOS would be easier, as c libraries are there for free.
n
napperley
11/19/2017, 1:44 AM
Kotlin Native doesn't support JNI.
d
dsgryazin
11/19/2017, 4:39 PM
Interesting if it's possible and if KN team has plans for it. I see 2 scenarios here
- migrate C code to Kotlin Native in your work with NDK for maintainability and your personal happiness
- straightforward usage of C libraries in you core modules: parsing, formatting, Math, etc, thus making the interface for the other platform-depenent modules clean and compact
o
olonho
11/20/2017, 5:43 AM
This operation mode is not yet supported, but this may change in future releases