Has anyone made a modularized project with multipl...
# multiplatform
k
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
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
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
You can have only one single K/N framework
k
Yeah, that's the thing. 😢I guess I'll stick to the "bridge" module for now.
a
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
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
not in 1.3.60 🙂 in next release (1.3.70 i think)
k
oh i misread that. thanks for pointing out. til it gets released then!
k
Is there some branch/pr that refer to "in kotlin-native repo already merged request with multiple K/N frameworks in app"?