Hi, is it possible create / adjust KMM project wit...
# multiplatform
y
Hi, is it possible create / adjust KMM project with several different shared library when one of each contains, for example, only HTTP service, other contains only local storage service and iOS project can choose one of it? Or only one massive shared library? If I can, please, where i can look it?
b
Only one klib from ios side I'm afraid However you can have multiple klibs interracting together from kotlin side. Common workaround is to have a wrapper kmp lib that only declares all the other klibs as dependencies and reexports them to ios together
s
I've not tried with cocopods but with a regular framework it is doable, at least, it's possible to have two. I have one statically linked and one dynamically linked. I have a feeling any more than that would start getting flakey though
b
The problem with multiple klibs on ios is that you get multiple GCs embedded which not only wastes space and memory, but could also result in leaks. Wrapper klib eliminates this problem.