David
01/21/2025, 6:41 AMsergey.bogolepov
01/23/2025, 5:13 PMDavid
02/03/2025, 4:53 PMsergey.bogolepov
02/05/2025, 3:38 PMpackage org.foo.bar
). So in a single module KotlinModule
you might have:
// File A.kt
package org.foo.bar
fun action()
// File B.kt
package org.foo.baz
fun action()
So you can directly call KotlinModule.action()
on a Swift side because you don't know which action
should be called. Sucks, I know.
Our current approach is to give users a way to say: "in my library package org.foo.bar
is the default one, so please collapse it in the generated Swift API". This way you will be able to call KotlinModule.action()
on a Swift side and it will resolve into org.foo.bar.action()
. And you still going to be able to call another one by using fully-qualified name <http://KotlinModule.org|KotlinModule.org>.foo.baz.action()
.