anybody got experience using Kotlin + JNI on Andro...
# android
l
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
You can write JNI glue code on Kotlin, no problems there. Use
external
modifier instead of
native
from Java
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
Also hope one day Kotlin/Native can be used to easily declare NDK API and use from Kotlin JVM
l
thanks a lot! 🙂