Howzit guys :wave: I'm prototyping a kmp-android/i...
# multiplatform
i
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
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.
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
Gotcha, thanks. Specifically looking for official docs right now
i
Rockstar 🌟 Thanks @Landry Norris