I plan to develop a kotlin native module using sql...
# kotlin-native
q
I plan to develop a kotlin native module using sqlite C library for sharing code for a database between Android and iOS. Do you guys think of any foreseeable problems this could pose ? For instance, will I easily be able to include a kotlin native module on Android ?
o
Take a look at https://github.com/JetBrains/kotlinconf-spinner/tree/master/kotlin-native/samples/fullstack/sql. K/N supports Android, but you likely want to use that from Kotlin/JVM (unless you develop pure native activity), so maybe just using Room (https://developer.android.com/topic/libraries/architecture/room.html) would be better there
q
Thanks, you guys are doing a great job here, I appreciate it 🙂
g
imo use platform specific library for each platform (for example Core Data for iOS and Room for Android) would be better solution than native library, at least you will avoid tedious JNI when work with your library from Android