I have my android
multi-module app made in kotlin. Within the feature module, there is a submodule myitems, in which there are the following submodules: data, domain, navigation
and presentation
. I have delegated the navigation to another module called core
, specifically to a submodule called navigaiton, becoming the parent node of the navigation and delegating to each feature its own navigation (core.navigation
), so that in my feature-myitems I have a method to register the subgraph that corresponds to it. This sets the navigation network of the feature, indicating the startDestination and other Screens, since the app is made in Jetpack Compose
.
So, the screens are defined within the submodule feature.myitems.presentation
, but the navigation subgraph is defined in the submodule feature.myitems.navigation
. Should the latter (feature.myitems.navigation) have access to the screen (feature.myitems.presentation)?
In case of not being like this, how would you then organize the navigation through modules using compose for screens? Thanks