Have anyone tried creating an Android/iOS multipla...
# multiplatform
t
Have anyone tried creating an Android/iOS multiplatform module for AWS SDKs? 🤔 A few observations: 1. While AWS do provide a Kotlin multiplatform SDK, it supports only Android/JVM targets. So this leaves us with no choice but to implement the iOS target's handling manually. 2. On the iOS side, there is an AWS Swift SDK, but no Objective-C SDK; Kotlin multiplatform supports Kotlin/Obj-C interop, but there is no direct Kotlin/Swift interop. It seems difficult to go ahead with this, thoughts?
f
For the second one, you can use this plugin to create yourself the bridge. I don’t recommend for a full implementation. But it’s technically possible
đź‘€ 1
🌟 1
Just check a little, some (all?) SPM package of the SDK propose the ObjC headers, so it should be exportable to Kotlin.
But, yeah, a unified SDK should be better. I don’t think there will be a rework of the Kotlin SDK to KMP sooner.
d
I'm curious about how you'll manage to do this please update us ;-) I really think full interoperability with swift should have been prioritized more.
f
It will never have full interoperability between Swift<>Kotlin, Swift-Import is not on the roadmap of kotlin.
d
Why not? Without it it's really crippled
f
Yes, it is. for now, JB is focused on Swift-Export, Swift-Import won’t be here sooner.
d
I agree export is more important. But swift import enables developers to use swift libraries from Kotlin code and would be a game changer. Anyway I don't wanna move the focus away from OP question. One possible way to do what OP wants could be writing an interface in kotlin and implement it from the android - JVM side with the KMP version of the SDK and on the iOS side directly in swift?
f
Yes, of course, it’s possible, just a small example with a video player.
Another true example, but with cocoapods
👍 1
kodee happy 1