Overview of spmForKmp
mainspmForKmp is a Gradle plugin designed as a modern alternative to the deprecated CocoaPods plugin for Kotlin Multiplatform (KMP) projects targeting Apple platforms.
It enables the integration of Swift Packages and facilitates Swift↔Kotlin communication by leveraging the native Swift Package Manager (SPM) directly, without requiring third-party dependencies.
Key Capabilities:
- Swift-Import to Kotlin: Import your own Swift code to provide functionality that is unavailable in Kotlin.
- SPM third-party dependencies: Add external Swift packages and utilize them within your bridge.
- Export to Kotlin: Expose SPM dependencies and Swift code directly in Kotlin (subject to compatibility constraints).