Aseem Sharma
06/19/2024, 7:21 AM@Destination<RootGraph>
for a feature level entry screen, my question was why do we have Annotation as compulsory type of @Destination
, I can see some code snippets in the doc where @Destination is used as follows:
@Destination(
visibility = CodeGenVisibility.INTERNAL // or PUBLIC
)
@Composable
internal fun MyScreen() { /*...*/ }
I cannot use it same way while declaring destination on my side, I have to mention RootGraph
Rafael Costa
06/28/2024, 7:17 AMAseem Sharma
07/14/2024, 8:03 AMarg("compose-destinations.generateNavGraphs", "false")
only then I am able to use single navGraph, if I remove this setting and build I get following error:
[ksp] com.ramcosta.composedestinations.codegen.commons.IllegalDestinationsSetup: NavGraph 'RootGraph' doesn't have any start route. Use corresponding annotation with `start = true` in the Destination or nested NavGraph you want to be the start of this graph!
start = true
I have already declared in app module splash screen, since @RootGraph
is used in feature module which may not be accessible to the library hence this error is thrown, if you can suggest any solution to this it will be very helpful. TIARafael Costa
07/14/2024, 8:28 AMRafael Costa
07/14/2024, 8:28 AMRafael Costa
07/14/2024, 8:35 AMRafael Costa
07/14/2024, 8:37 AMRafael Costa
07/14/2024, 8:37 AMAseem Sharma
07/14/2024, 8:40 AMExternalModuleGraph
but you are right I have to include feature level navGraphs, with their public destination as start true, I will refactor this on my side, thanks for clearing up the confusion 👍