Is there an equivalent of `@JvmName` and/or `@JvmM...
# kotlin-native
a
Is there an equivalent of
@JvmName
and/or
@JvmMultifileClass
for Kotlin Native? I have files with the same name in different sourcesets of a multiplatform project (e.g.
common
,
ios
,
android
) and on iOS I end up with methods scattered under several different classes. (e.g.
ServiceKt
,
ServiceKt_
). Is this avoidable?
k
I should know off the top of my head but I don’t. However, I don’t think so. There is probably a set of things we’ll want to control with interop output. Should discuss. I’ve been thinking lately that iOS framework output might be better as a plugin rather than baked into the compiler directly. Name overriding would be an annotation library rather than a language built-in
s
There is no way to configure Swift name for declaration or file.
a
Okay, too bad
s
iOS framework output might be better as a plugin rather than baked into the compiler directly.
This is barely possible since this feature is deeply integrated into the compiler.