I'm taking a guess without actually trying to crea...
# touchlab-tools
k
I'm taking a guess without actually trying to create something to replicate the issue. I would guess that the exported Framework doesn't expose anything in the API that pulls in
ScreenRoute
, then the code generated for CSB needs it. It would make sense that CSB has some way of adding Kotlin code structures (classes, interfaces, etc) to the API that the Kotlin compiler generates, but CSB itself is fairly new, so I wouldn't be surprised that it doesn't do that (or can't). To test this, you could export Voyager to the KMP framework build, which should then include
ScreenRoute
. If that works, depending on how big Voyager is and how much additional code is exported as a result, I'd probably try to figure out a way to limit the export to only the parts of Voyager that you need. A simple way to do that is to just add a dummy function that returns
ScreenRoute
. It doesn't actually need to do anything, but the Kotlin compiler will see it and export
ScreenRoute
.
👍 1
m
Thank you for the suggestion. Will check it out