-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destionation annotation & interface name clash #14
Comments
Hi @hrach 👋 I understand, but at the same time I kind of like that a Destination annotation generates a Destination. I'm definitely not excluding the possibility of renaming the interface. It's just that I'd like to know exactly the cases where we'd want to import both of them before I make a decision. |
Btw, this might be a good solution in the meantime: typealias AppDestination = com.ramcosta.composedestinations.Destination Put this anywhere and then you can refer to the Destination interface as |
My use case is the main screen (also a destination) has many navigables to other screens and so I have them created separately as a list and passing them around - then I need to type them.
I'd say it can also bring some confusion. We are marking a composable as a destination, but the generated resulting object is much more than a "destination", it is a routing specs, argument processor, navigation factory... Since this interface is used much less than the annotation I'd change its name. Surprisingly, I've just realized the interface is already named correctly - Knowing this it seems to be solved for me as I don't utilize the sealed interface. |
Yap, in the core, the interface is I think with both solutions described here Please close it if you agree 🙂 |
Currently the Destination's annotation and interface name are same and fqn/import alias has to be used.
This is quite inconvenient. It would be great if one of them get renamed.
Second, it seems that KSP won't pickup an import-aliased Destination annotation.
The text was updated successfully, but these errors were encountered: