-
Notifications
You must be signed in to change notification settings - Fork 566
Kotlin Generics to Swift Generics. #2429
Comments
K/N does not interop with Swift directly yet, only via Objective-C, thus this feature request is not something we could help with at the moment. |
|
It means I describe the current situation and cannot make any promises here. |
I would also love to have this functionality. This would open a lot of cool possibilities for our team. |
@olonho |
I must agree that generics visibility is an important part of interoperability. I believe that it is necessary if making common parts in Kotlin for Android and iOS is to become popular in mainstream programming. |
Draft pull request generating generics in objc interop. Please comment if interested: #2850 |
amazing |
We need generics. |
Kotlin Generics can be converted to ObjC/Swift Generics as of Kotlin 1.3.40 |
Yeah! |
I haven't been able to make this work yet :( Currently I have this:
But I still see |
@desgraci this snippet is not enough to find the cause. Please post the entire Gradle script. |
@SvyatoslavScherbina sure no problem:
I've tried different combinations so far, but no luck, if there is anything else that I can bring to the table to help ouy let me know, btw this is my test generic class:
but I still get the @ |
CocoaPods plugin creates its own framework internally.
creates the second one. It should configure already created framework instead. Please refer to the documentation (see "Accessing binaries"). |
Indeed, wasn't overwriting in the correct way the cocoapod's framework, worked like a charm, a good case of RTFabolousM, thank you for guiding me on this one @SvyatoslavScherbina |
Hi, maybe you can help me. I followed this tutorial: https://medium.com/@fandygotama/kotlin-multiplatform-reactive-a45263e1fd7a and got tuck right in the beginning. The sync fails:
line 16 is the |
Is it possible to convert Kotlin generics to Swift Generics ?
At this time, it is converted to
Any?
(a.k.a Optional<Any>).The text was updated successfully, but these errors were encountered: