https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
t

Thomas Nattestad

05/31/2023, 2:40 PM
Is anyone here trying to deploy their Kotlin code to a web app? I'm the JS & Wasm PM for Chrome and hoping to learn more about how developers want to leverage Kotlin in the browser. Let me know if anyone has input on what Chrome could help push forward, what's missing to enable Kotlin for web, or you just want to chat 😄
🙏 1
j

Joel Denke

05/31/2023, 6:39 PM
Will keep it in mind. I am interested in how to align compose multiplatform into web with Wasm. Like navigation host but also sharing adaptive layout concept with iOS and Android. What can I do today, can I share compose Wasm stuff completely?
m

mikehearn

05/31/2023, 6:45 PM
Sure, I'm happy to chat. Shall we take it to PM?
t

Thomas Nattestad

06/01/2023, 10:56 AM
@Joel Denke: IIUC Compose multiplatform support both canvas and DOM targets for rendering UI. Wasm only introduces the ability to compile Kotlin to wasm rather than having to compile to JS. I'm not an expert on the UI layer side (part of what I'm trying to learn here) but happy to hear input from others. @mikehearn Yes! Will DM you 🙂
j

Joel Denke

06/01/2023, 4:14 PM
@Thomas Nattestad Not sure how well aware you are with NavHost containers. Like single screen entry point and replace compose subparts. Not sure if web Canvas can do that, but would assume similar solution as iOS working. As web more url based navigation not sure how that would work in WASM world. Basically all platforms need a unified way of dealing with navigation, including dialogs and such. Very complex. If have any ideas how solve this cross compose platform on web very curious hear your thoughts. Architecture wise bridge ui and domain layers with stuff such as screen transitions and nested navigation stacks. In theory I guess compose could handle it alone but would still require compose multiplatform supports it or libraries compatible with these concepts. Its the only layer I feel is not solved nice in any platform. Like dependency injection, nested navigation graphs, conditional navigation (auth) and such.
2 Views