Howzit guys 👋
I'm prototyping a kmp-android/ios project for my team and I'm currently engaged in the research phase.
Does anyone know where I can find any official docs on the strategies for consuming a kmp library from an iOS app?
Not looking for anything specific at this point, just want to see what the options are.
Thanks in advance
l
Landry Norris
10/24/2023, 7:04 PM
Any KMP library that supports iOS can be added as a normal gradle dependency to the iosMain source set. You can also add frameworks via cinterop, and pods via the cocoapods gradle plugin.
Landry Norris
10/24/2023, 7:06 PM
To use the library from Swift, you can have the cocoapods plugin produce a cocoapod, have the normal build produce a raw framework, or use a third-party plugin to create a swift package. TouchLab created a product called KMMBridge to make the process easier.
i
izakvdhoven
10/24/2023, 7:07 PM
Gotcha, thanks.
Specifically looking for official docs right now