Hi! I just wanted to ask if there's another more u...
# swift-export
p
Hi! I just wanted to ask if there's another more updated Swift Export/Obj-C feature parity document? This spreadsheet is referenced in the Kotlin/Swift Interopedia but hasn't been updated for a while and it would be nice to have a high-level overview of which features are supported and not.
โ˜๏ธ 1
m
Spreadsheet will not be updated as per last message from @Artem Olkov. I do agree we need a complete set of feature comparisons. Which will help people make informed decisions. https://kotlinlang.slack.com/archives/C073GUW6WN9/p1785568213802919?thread_ts=1785524859.169269&channel=C073GUW6WN9&message_ts=1785568213.802919
p
Hi folks, no - there is not yet, but I agree that it would be a worthwhile exercise from JetBrains's side. In the meantime there is the sample also that you can look at.
๐Ÿ‘ 1
p
Hi Pamela, could you send a link to the sample you mentioned so we have it for reference in the meantime? ๐Ÿ™‚
p
a
Hello there. We indeed do not intend to continue the support and evolution of The Table. That said, we just pushed an update to the Sample. Now it demonstrates almost all of the features that Swift export support. Main difference with Objective-c export is that Swift export does not support Generics ATM and they are erased. That leads to a couple of problems, and for the current version we encourage our users not to use Generics in public API with swift export - we recommend wrapping your generic code into a non generic wrappers.
p
Thank you Artem! Still no plans for a new feature parity document though? ๐Ÿ™‚ It could be very useful for helping teams to know if they can migrate to Swift Export or not. About generics - are you saying that generics is not supported for 2.5.0-Beta2 or in general? Is there a ticket that I can follow for generics support on Youtrack?
a
Thank you Artem! Still no plans for a new feature parity document though? ๐Ÿ™‚
I am not prepared to share the full scope of updated documentation for 2.5.0 release, as it is not final yet. If you are REALLY curious about the upcoming docs update - feel free to follow our public repo with the documentation ๐Ÿ™‚ The main diff looks smth like this - SE lacks the generics support, and provides additional features like support for multimodular projects, coroutines and Flow, sealed hierarchies, top level functions, stable naming, etc. There is also a couple of helpers for migration onto Swift Export from using objc export with KMPNative Coroutines, see the docs. And we have made Exceptions a bit more easier to work with - SE ignores the exceptions listed in
Throws
annotation, every thrown exception now safely reaches the swift side (as long as the function marked with
Throws
)
are you saying that generics is not supported for 2.5.0-Beta2 or in general?
The 2.5.0 release will not support Generics. I cannot confirm nor deny the future development plans outside of those announced at kotlinlang.org/docs/roadmap.html ๐Ÿ™‚
Is there a ticket that I can follow for generics support on Youtrack
Created: youtrack.jetbrains.com/issue/KT-90991
p
Thank you Artem! I understand that you don't want to get ahead of yourselves. We will make a pilot and see if we can get around the generics limitations. Really looking forward to adopt Swift Export!
kodee happy 1
a
Thanks! Looking forward to the feedback ๐Ÿ™‚
๐Ÿ™Œ 1