最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

kotlin - Android Compose navigation in Multi-Module project - Stack Overflow

programmeradmin9浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论