humbledroid
03/18/2024, 9:31 AM:core
which has the whole networking layer, model, which will then be used by another module :analytics
, :error-logger
, :auth-feature
and so on. and then these modules can be consumed in the iOS and android apps.
while building a framework/xcframework for iOS side, all of this would get packaged in single xcframework and while consuming in iOS side, we will end up, consuming unnecessary modules in the respective modules in iOS side. like a feature module might not auth module at all, but just error logger, but the framework will have all of it.
are there any strategies or something that can be done in order to achieve this, I have gone through a few issues and open issues on youtrack.
here
https://github.com/JetBrains/kotlin-native/issues/2423
https://github.com/JetBrains/kotlin-native/issues/2423#issuecomment-465384562
https://github.com/JetBrains/kotlin-native/issues/4013
https://youtrack.jetbrains.com/issue/KT-42247humbledroid
03/18/2024, 9:35 AMhumbledroid
03/18/2024, 9:40 AMhumbledroid
03/18/2024, 10:17 AM<https://kotlinlang.org/docs/multiplatform-build-native-binaries.html#access-binaries>
this, that these can be extracted out as native binaries, and then can be added to native targets, but not super sure about it though.