'How to add a dependency on a Pod library in KMM (Kotlin Multiplatform)?
So, I followed the Kotlin guideline and added the dependency from a remote repo like below:
pod("JSONModel") {
source = git("https://gitlab.com/jsonmodel/jsonmodel.git") {
branch = "key-mapper-class"
}
It does add the dependency, however instead of referring to the branch I point at gitlab, it points to the main branch. Any ideas why this might be happening? Having a deeper look at the generated files, it feels as if this is a bug with native.cocoapods plugin within KMM. KMM adds the dependency as instructed on the shared library but it also adds the latest published version from cocoapods.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
