KoalaSat / nostros

Nostr client on Android
Apache License 2.0
410 stars 30 forks source link

[Proposal] Use Kotlin Multiplatform to share business-logic between platforms #105

Open nrobi144 opened 1 year ago

nrobi144 commented 1 year ago

Why?

Applications have two type of code: platform-specific and platform-agnostic code. To create the best UX with the least effort, we should seek the best tool that makes the distinction easy to translate into code.

Native vs React Native vs Kotlin Multiplatform

Fully native implementations don't leave much room for reusing platform-agnostic code, while React Native makes writing platform-specific code hard. Kotlin Multiplatform strikes the best balance so far in my experience.

I'd be happy to start off with introducing Kotlin Multiplatform in from of a PoC by sharing the database logic between iOS and Android using cashapp/sqldelight.

Resources

KoalaSat commented 1 year ago

this is a huge push up for the project! thank you so much for the help, anything you need please let me know 😃