https://kotlinlang.org logo
#android
Title
# 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
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

lovis

06/29/2018, 12:57 PM
thanks a lot! 🙂
2 Views