Hi everyone, is there a way to modify generated sw...
# multiplatform
r
Hi everyone, is there a way to modify generated swift name of Kotlin class? the usecase is I have a
open class SomeOpenClass
in my library named e.g.
MyKmmLibrary
if the user use it in the kmm app the open class will have the swift name
MyKmmLibrarySomeOpenClass
which is terrible, is there a way to force it to be named just
SomeOpenClass
?
k
K/N already does this for you
r
so it is not possible to change it?
k
not to my knowledge
e
k
that would just change the prefix, not the class name
e
https://kotlinlang.org/docs/apple-framework.html says framework name is used as the prefix there too
t
transitiveExport = true
will use just the plain name (no prefixes), but as the name suggest, it will export all your
api
dependencies too
👍 1
b
If you export the dependency when you build the framework it should get rid of the prefix: https://kotlinlang.org/docs/mpp-build-native-binaries.html#export-dependencies-to-binaries
👍 1