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

neworldlt

02/25/2018, 2:08 PM
I noticed, that new project generation always mess up. Instead, I am creating all configurations by myself for awhile. My configuration:
Copy code
(root) - setup only buildscript classpath
     - engine-common -> kotlin-platform-common
     - engine-js -> kotlin-platform-js
     - engine-jvm -> kotlin-platform-jvm
     - backend -> kotlin-jvm
                - engine-jvm
     - frontend -> kotlin-js
                - engine-js
a

anton.bannykh

02/26/2018, 10:58 AM
cc @Alexander Podkhalyuzin [JB] @sashache
a

Alexander Podkhalyuzin [JB]

02/26/2018, 2:53 PM
We’ll check, thanks for the notice.
v

viktoria.shirunova

02/27/2018, 10:40 AM
Hi, @neworldlt, could you please provide more details? The template
Kotlin / Kotlin (Multiplatform - Experimental)
creates main common module and 2 additional platform modules (by one for each of supported platforms). This would cover only three modules from your configuration, other modules have to be added manually. So, what exactly you'd like to see? common module as a module on the same level as platform ones or something else?
n

neworldlt

02/27/2018, 12:33 PM
Hello @viktoria.shirunova. Sorry, maybe I miss-communicate a bit. I am using Gradle on all projects, no excuses. The problem is, Intellij project and module creation often make some mess in my project dir. Maybe I am using it wrong. Templates are good. Sometimes is easier to manually create all folders and files. It is no problem for me. I could give an example: - 1. Create empty project with one module. - 2. Add
Kotlin (Multiplatform - Experimental)
Common module is merged into root module. And I have manually create common module and wire it.
v

viktoria.shirunova

02/27/2018, 1:20 PM
ah, yes, this should not be allowed 😞 https://youtrack.jetbrains.com/issue/KT-20222 You can start new project from
Kotlin / Kotlin (Multiplatform - Experimental)
(it creates gradle based project) as well as you create empty gradle project. In any case, add new modules from Gradle group with any Kotlin framework checked - there are 5 of them in this group - for every kind of module you've listed in your configuration 🙂
n

neworldlt

02/27/2018, 1:30 PM
Yep, it is exactly I meant 🙂
6 Views