Hi, everyone Sorry if I am writing to wrong channe...
# announcements
n
Hi, everyone Sorry if I am writing to wrong channel. I used Kotlin for previous multiplatform project. I am using IDEA, so I used: Kotlin (Mobile Android/iOS) project type. Now I want to develop another project for both mobile platforms but in addition - develop a server on Kotlin as well and want to share same model classes or common code betwee those parts. What is the best project type/setup/structure (preferably in IDEA) for this kind of projects?
p
It is better to make multimodule project. One module for model definitions(could be just common part), one for android and ios clients (as you have now) with dependency on model module and one is server module (jvm) with dependency on model module.
s
If you like you can check out my project on Github. I did exactly what Hondogo Paul recommended. https://github.com/compeople/kotlin-multiplatform-sample
n
@PHondogo, @Sabrina Namur Thank you, I will check github