Hi everyone, I am trying to migrate from Cocoapods...
# kotlin-native
v
Hi everyone, I am trying to migrate from Cocoapods to SPM Is there any way to add ios libraries to a KMP module via SPM, as of now i have added them as pod dependencies using the
kotlin.native.cocoapods
plugin and by using this
Copy code
pod("...") { ..... }
f
Hi, no official alternative but there is this one 🙂
v
Ah i see Thanks @François So, if im not wrong If i add a pure Swift library like https://github.com/amplitude/Amplitude-Swift and want to use it in my Kotlin Code I would need to add bridge wrappers for it and set
exportToKotlin=true
?
f
just make the wrapper, if you use Amplitude-Swift with
exportToKotlin=true
nothing will be exported from the dependency. The exportToKotlin is only for ObjC or Swift compatible/exportable library like this one https://github.com/amplitude/Amplitude-iOS.
by default, the bridge export all compatible code.