https://kotlinlang.org logo
Title
z

zeljko

06/23/2017, 7:49 AM
Which 3rd party libraries could be used with Kotlin Native? For example, if I want to write app that reads JSON from file and writes it to database, would I use Jackson and Hibernate or some C stuff?
o

olonho

06/23/2017, 10:10 AM
Any library with C bindings could be used, see samples coming with Kotlin/Native, for your task you may want to use https://github.com/json-c/json-c and C connector for MySQl, i.e. https://www.mysql.com/products/connector/
👍 1
j

jasper

06/26/2017, 2:48 AM
I don't think hibernate will work as it uses cglib proxies - cglib/asm depend on the JVM
Perhaps there's a way to write a tool to analyse a lib and see if it would work - scan classpath for known libs that depend on JVM features.