I recently established a good pattern for calling Swift library code within my Multiplatform app using interfaces and Koin. It's been helpful so far, especially with the fact that I can worry less about 3rd party libraries getting outdated with time when they're not maintained. However, it seems like the Kotlin Multiplatform team doesn't really recommend this, particularly with
respect to scalability.
Does this suggest that the first approach to consider when calling Swift packages like
GoogleSignIn-iOS or
firebase-ios-sdk in my Multiplatform projects would be to consider a KMP library? Or perhaps use the native cocoapods (objc) or some other KMP library (which probably uses cocoapods and cinterops underneath).
My goal is to ensure long-term maintainability and scalability. Any insights or recommendations on the best approach to integrate Swift libraries in Kotlin Multiplatform projects would be greatly appreciated.
Thank you.