Join Slack
anybody got experience using Kotlin + JNI on Android? Does it work nicely, or is it smarter to just ...
# android
l
lovis
06/29/2018, 7:32 AM
anybody got experience using Kotlin + JNI on Android? Does it work nicely, or is it smarter to just use plain old Java for those parts of the app?
g
gildor
06/29/2018, 10:25 AM
You can write JNI glue code on Kotlin, no problems there. Use
external
modifier instead of
native
from Java
gildor
06/29/2018, 10:25 AM
https://proandroiddev.com/android-ndk-interaction-of-kotlin-and-c-c-5e19e35bac74
gildor
06/29/2018, 10:28 AM
Also, there is very old repo from
@ilya.chernikov
with a bunch of NDK samples But it’s outdated (uses pre 1.0 modifer
native
) Maybe make sense to update it with new Android and new Kotlin, good way to contribute
gildor
06/29/2018, 10:29 AM
Also hope one day Kotlin/Native can be used to easily declare NDK API and use from Kotlin JVM
l
lovis
06/29/2018, 12:57 PM
thanks a lot! 🙂
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by