Martin Vandzura
Martin Vandzura

Reputation: 3127

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

Upvotes: 3

Views: 1308

Answers (1)

Aleksey Mikhailov
Aleksey Mikhailov

Reputation: 56

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)

Upvotes: 4

Related Questions