Hi, I plan to build an application for Android and...
# multiplatform
a
Hi, I plan to build an application for Android and web (using Kotlin WASM) and I have a basic question: what should I use for navigation in the web version? For Android is a simple case. But for web I want to have a regular links between pages, of course. I saw these libraries. I have seen something that resembles a path definition in only one library (PreCompose: scene(route = "/detail/{id}")...) Which one is the best for my case? Or maybe we have something new?
a
There is also https://github.com/aSoft-Ltd/captain works on all platforms. Disclaimer; I am the author
j
I am using this: https://slackhq.github.io/circuit/navigation/. You could take the changed backstack entries and observe and re-route urls if want that. Using this for iOS and Android at the moment. Also worth notice is that Jetbrains 2024 roadmap has cross platform navigation on their agenda, see https://blog.jetbrains.com/kotlin/2023/11/kotlin-multiplatform-development-roadmap-for-2024/
I presume can do the other way around as well, observe url changes and trigger them to be mapped to compose navigation library, such as Circuit or any of them 🙂 Curious to hear about this as well, if I want to try out WASM/Web of CMP soon.
a
Thx , I'll try these libraries 👍