Hi everyone, I’ve been testing the Swift export an...
# swift-export
j
Hi everyone, I’ve been testing the Swift export and was wondering if there’s a way to completely disable the Kotlin package conversion into nested enums. I’m aware of the
flattenPackage
option, but even with that enabled, it still generates enums for nested packages inside the flattened namespace. In our app, we’re already using a KMP library and reference the Kotlin classes directly without the package-based enum structure, so ideally we’d like to avoid the enum wrapping altogether. Is there a way to achieve this?
👍 1
a
Hello there 🙂 Sadly, there is no such option at the moment. The team is aware that there should be options to configure export of packages, but at the moment our priorities lie elsewhere (support for coroutines). I've created an issue for you to vote and follow: KT-82414 [Swift Export] Add configuration for package export strategy
thank you color 2
j
Thanks @Artem Olkov. I invite anyone else who needs this functionality to upvote this issue KT-82414.