https://kotlinlang.org logo
#ios
Title
# ios
a

Alberto

06/18/2020, 2:51 PM
Hello, my team is evaluating to use Kotlin Multiplatform for our Android and iOS apps. One concern I have is in regards the ability to link against multiple Kotlin Multiplatform libraries in the future. I saw there is a limitation on iOS specifically looks like: https://github.com/JetBrains/kotlin-native/issues/2423 it appears that it may have been fixed on a more recent version of Kotlin 1.3.70, could anyone please confirm?
b

basher

06/18/2020, 4:59 PM
yep we use multiple K/N-based frameworks in the same iOS app now
a

Alberto

06/18/2020, 5:01 PM
good to hear, so that limitation is no longer a problem on newer Kotlin versions? I wasn't too clear, but the answers on github sounded like it may still be a problem if those K/N libraries may depend on some common classes
b

basher

06/18/2020, 5:06 PM
not an issue in K/N 1.3.72
not sure what you mean about common classes though
a

Alberto

06/18/2020, 5:20 PM
b

basher

06/18/2020, 6:11 PM
i see. worlds are still closed, but you can have multiple frameworks
so that particular restriction is lifted
👍 1
a

Alberto

06/23/2020, 12:16 PM
Does the final application size increase with each framework size? Meaning if you are building against 3 KMP libraries, each of which is ~2MB (that's about the minimum I found from a sample app), does the app end up being ~6MB larger? Or is there any optimization done at final link stage which I would hope?
2 Views