takahirom
07/10/2022, 10:36 AMA feature module should have no dependencies on other feature modules.I was wondering what happens when a feature nests more than once. For example, if there is an "article screen" that has a "your article tab" and "daily article tab" in it, I thought that the feature module would want to depend on the feature module. In such a case, does nowinandroid assume that all tabs are implemented in the core module? If it is a simple screen, you can put it in the article feature module, but assume it is a complex and large function.
Layout structure
screen -> "article screen" -> "daily article tab"
module structure
app -> feature-article(contains "article screen") -> core-dailyarticle(contains "daily article tab")
-> core-yourarticle(contains "your article tab")
As I write this message, I am beginning to think that this is not a problem because it works fine.
https://github.com/android/nowinandroid/blob/main/docs/ModularizationLearningJourney.md#types-of-modules-in-now-in-androidK Merle
07/15/2022, 8:02 PMfeature
modules in nowinandroid
are strictly presentation layer. So it doesn't make much sense for one presentation layer to depend on other presentation layer. You could share viewmodel tho, but in that case, you could have nested and parent screen inside of the same feature I'd say.Ali
07/16/2022, 1:47 PMSorin
07/29/2022, 4:17 PMJavier
07/29/2022, 4:20 PMSorin
07/29/2022, 4:21 PMJavier
07/29/2022, 4:23 PMSorin
07/29/2022, 4:23 PMJavier
07/29/2022, 4:24 PMSorin
07/29/2022, 4:24 PMJavier
07/29/2022, 4:25 PMSorin
07/29/2022, 4:25 PMJavier
07/29/2022, 4:25 PMSorin
07/29/2022, 4:26 PMJavier
07/29/2022, 4:26 PMSorin
07/29/2022, 4:27 PMJavier
07/29/2022, 4:27 PMSorin
07/29/2022, 4:27 PMJavier
07/29/2022, 4:28 PMSorin
07/29/2022, 4:28 PMJavier
07/29/2022, 4:28 PMSorin
07/29/2022, 4:28 PMJavier
07/29/2022, 4:29 PMSorin
07/29/2022, 4:42 PMJavier
07/29/2022, 5:06 PMK Merle
07/29/2022, 5:10 PM