I'm still new to Android development and now I'm getting started with Clean Architecture and I'm wondering about some things. First of all I'm using a single activity pattern and am in the process of modularizing my project by features and adding usecases. I've got a couple of questions if anyone's got some time.
1. What's a good level of dividing features? Could one feature have multiple associated fragments?
2. I find myself not creating repositories for most features. Instead I have 3 repos in the app module, because they must be used in multiple places of the project. Is this right or wrong?
3. How would I handle things like someone sending me a message when that logic will only happen once I'm in an assignment together with that person. This would require that I'm somehow notified about the message in multiple fragments. I would need to observe the same data in multiple viewmodels, use an extra activity, or put the livedata observing in the main viewmodel. This would quickly make the mainviewmodel full of stuff it only needs in certain areas of the app. I have a similar requirement for other areas of the app where I need to receive notifications in the form of popups across certain fragments.
Thanks.