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

Kurt Renzo Acosta

10/31/2019, 12:38 AM
Has anyone made a modularized project with multiplatform for iOS? Saw this article (https://medium.com/web-factory-llc/modularize-your-kotlin-multiplatform-project-6e5831508a81) where you create a "bridge" module just to tie up all the other modules but it's not a plug-and-play solution as you have to expose the objects/classes in the bridge module so you can use them in K/N
d

darkmoon_uk

10/31/2019, 1:24 AM
Not sure what a Bridge module is or why you'd need one... I'm used several Kotlin M/P modules feeding into this iOS Example and it justWorked™: https://git.chrishatton.org/chris/kotlin-multiplatform-template
...may be some benefit to the 'bridge module' they're advocating of course; but I didn't feel I had to do anything special to get multiple module dependencies working(?) Maybe I'm missing the point.
k

Kurt Renzo Acosta

10/31/2019, 1:35 AM
Aren't you receiving the
KotlinBase is implemented in both <Framework1> and <Framework2>
?
Plus other classes
I just tried your project out and seems like you're not importing frameworks into your iOS project
g

gildor

10/31/2019, 2:04 AM
You can have only one single K/N framework
k

Kurt Renzo Acosta

10/31/2019, 2:04 AM
Yeah, that's the thing. 😢I guess I'll stick to the "bridge" module for now.
a

alex009

10/31/2019, 3:19 AM
You can have only one single K/N framework
in kotlin-native repo already merged request with multiple K/N frameworks in app...but it will be released not in 1.3.60 😞
k

Kurt Renzo Acosta

10/31/2019, 3:20 AM
Yeah. I just saw it in the feed channel. Thanks for sharing!
That's good news! At least it's coming in 1.3.60. For now, I'll be trying out your way
a

alex009

10/31/2019, 3:21 AM
not in 1.3.60 🙂 in next release (1.3.70 i think)
k

Kurt Renzo Acosta

10/31/2019, 3:27 AM
oh i misread that. thanks for pointing out. til it gets released then!
k

Konstantin Petrukhnov

10/31/2019, 9:55 AM
Is there some branch/pr that refer to "in kotlin-native repo already merged request with multiple K/N frameworks in app"?