I would like to add Kobweb to my Compose Multiplatform project and share the ‘shared’ module. What references should I consider?
d
David Herman
07/26/2023, 10:58 PM
Not too sure exactly what your project organization is or your goals are. Just to make sure, Kobweb (and also Compose HTML) is not Compose Multiplatform. Although you can have the two live side by side.
👍 1
David Herman
07/26/2023, 10:59 PM
Check out the Kotlin Multiplatform video shared on July 20th to see if that helps. That one is about setting up Android side-by-side with Kobweb, but the general idea should be the same.
👍 1
David Herman
07/26/2023, 11:00 PM
In short, you will have a standalone Kobweb folder in your project (by convention, in a folder called site but you can call it anything), but you can declare Kotlin multiplatform library modules as dependencies.
👍 1
David Herman
07/26/2023, 11:00 PM
So you might create a common folder, then a Compose Multiplatform project which depends on common, and then a Kobweb project which also depends on common, all living in the same overall project.