eygraber
06/23/2025, 5:42 PMUri
type is exported to Swift as any UriUri
, and functions from Uri
aren't visible on it.
I'm not so familiar with Swift export; anyone know why something like that would happen?Artem Olkov
06/25/2025, 9:12 AMfun createUri(): Uri = TODO()
6. Open xcode and compile and go to the resulted Objective-C header
7. Discover that issue exists
8. Consult the documentation: https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-build-native-binaries.html#export-dependencies-to-binaries
9. add export("com.eygraber:uri-kmp:0.0.19")
to the framework
block on the demo project and recompile
10. check resulted translation to discover that protocol got exported in a way that user wanted in to.
Long story short - your user complaints about mangling of transitively exported declaration. Your user is able to avoid that by declaring your dependency explicitly exported(step 9).