https://kotlinlang.org logo
r

rudolf.hladik

09/26/2018, 7:58 AM
Hello, is there any guide, how to create this (https://github.com/JetBrains/kotlin-mpp-example) kind of project from scratch? I’ve tried to follow this https://github.com/JetBrains/kotlin-native/blob/master/MULTIPLATFORM.md but with no success especially wiring common/shared module as framework to new xcode project. Also I’ve seen different project structures, one with common module at root of project with three source sets for common, common-platform-ios, common-platform-android and the other one with three seperate modules for common, common-platform-ios, common-platform-android. Problem is, it is hard to find out which build.gradle settings and dependencies are for which source set.
t

thevery

09/26/2018, 8:15 AM
Multiplatform manual is for platform native plugin (or even konan), not for new multiplatform plugin.
r

rudolf.hladik

09/26/2018, 8:21 AM
ok, but here https://github.com/h0tk3y/k-new-mpp-samples isn’t needed info how to create project with iOS support either
l

Liliia

09/26/2018, 9:19 AM
Agree with Ildar, the link to the Kotlin/Native repository isn’t applicable to the new multiplatform model. We are working on such a guide right now, I think all the new guides will be announced separately and added to the Tutorials section of kotl.in
r

rudolf.hladik

09/26/2018, 9:46 AM
guide from https://kotlinlang.org/docs/reference/native/multiplatform.html is the same as kotlin-native MULTIPLATFORM.md as far as iOS app creation
l

Liliia

09/26/2018, 10:14 AM
Please, just wait for a while, we’ll update it soon
2 Views