我正在尝试实现具有动态特性的新导航组件
所以它的结构是这样的:
中包含动态dynamicFeatures = []
- login
- home
- etc.
我已经读了很多书,但没有成功,如何将它们粘合在一起而不相互依赖,因为每个功能都是完全隔离的
例如应用程序(app module)
以SplashActivity
开始并检查会话状态,所以我的问题是我应该如何启动login_graph
或home_graph
,在第一种情况下,在完成身份验证流程后启动主页?
我目前尝试将它们粘合在一起的方式是使用一个globalNav
模块(android-library),我找到了几个变通方法:
开始意图
Intent().setClassName(context.packageName, className).also { context.startActivity(it) }
- I've already tried using `actions` but the same behavior as deeplinks
任何建议都是很棒的:)
PS:我一直在查看/阅读的一些参考资料:
- This vid seems to address my question with instant apps (at the end of the talk), but there's a couple of issues, time was running out so they had to rush it, and there's no model project containing this use case :()
googlesamples
repositoryPSS:我正在积极尝试解决这个问题,如果我找到了一个好的解决方案,我也会保证回答的。
编辑
对于对此感兴趣的任何人,由于它目前不受支持,您可以在此处启动该问题:https://issuetracker.google.com/issues/132170186
https://stackoverflow.com/questions/55532700
复制相似问题