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

Konstantin Petrukhnov

09/10/2019, 10:17 AM
I'm looking into possibility to have multipproject structure like on the picture:
Where each box is separate git project, with own release cycle/versions.
Is it possible, and is there any examples how gradle scripts may look like?
k

Kris Wong

09/10/2019, 10:26 AM
I can at least confirm it's possible
👍 1
k

Konstantin Petrukhnov

09/10/2019, 10:28 AM
E.g. what dependencies should be in libB? each platform have dependency to libC? Or common module only have dependency to libC?
k

Kris Wong

09/10/2019, 11:06 AM
libC is built using what technologies? or is another kotlin MPP lib?
a

alex009

09/10/2019, 11:12 AM
should be "common module only have dependency to libC" but if you not want to use platform-specific functional of libC in libB
k

Konstantin Petrukhnov

09/10/2019, 11:13 AM
libC is common kotlin code, no native dependencies
a

alex009

09/10/2019, 11:14 AM
in this case "common module only have dependency to libC"
k

Kris Wong

09/10/2019, 11:15 AM
that makes it easy then, as long as you only use stdlib-common
the common module will have the dependency
k

Konstantin Petrukhnov

09/10/2019, 11:26 AM
thx! I will try to create some working example this week. Maybe even share it with others, if succeed.
k

Kris Wong

09/10/2019, 11:37 AM
the other public framework will need to be linked into your app, so you control the version
k

Kaden Wilkinson

09/16/2019, 5:09 PM
IIRC iOS can only load one Kotlin framework