Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Only one Kotlin framework can be loaded currently #2423
So.. i managed to make two kotlin-native frameworks for Swift but when trying to add them on the project i got the following message.
Do we have any update on this?
@SvyatoslavScherbina They don't depend on each other nor have something in common, and both of those frameworks can be used in other apps.
I think there's a workaround, creating tasks in the build.gradle to adjust for specific needs like, build A, build B or build A&B in only one .framework
But thats not optimal, we can't share several kotlin-native created libraries if we can't use more than one Kotlin framework per project
@solivares1 That's what I've had to do to utilize multiple kotlin libraries as a single framework:
I actually support several apps, needing different features. They are both ios & android apps.
So, I've ended up with a function in gradle called:
Then I have a block that looks similar to this:
This enables me to dynamically include different source sets based on what I pass to the gradle build.
It's definitely not ideal, but it's a sufficient work around.
This yields a single framework per application/platform. But, with the appropriate feature sets per application/platform.