Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kotlin native - share networking, sqlite database and logic between ios and android

I am trying to share code between iOS and Android and looking at Kotlin. Is it possible to do sqlite database access, parallel network calls api calls, json parings and some algorithms in Kotlin Native and Kotlin Multiplatform?

I have test project with Flutter/Dart where it works but I would prefer to use Kotlin.

Thanks

like image 596
Martin Vandzura Avatar asked May 22 '26 03:05

Martin Vandzura


1 Answers

try https://github.com/icerockdev/moko-template/ - here sample with network, serialization, shared business logic, storage.
for database use https://github.com/cashapp/sqldelight
multithreading can be done with https://github.com/Autodesk/coroutineworker (if you want coroutines) or https://github.com/badoo/Reaktive (if you want Rx)

like image 86
Aleksey Mikhailov Avatar answered May 26 '26 08:05

Aleksey Mikhailov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!