GithubIt
GithubIt copied to clipboard
An issue with your approach in Clean Architecture
If we want to implement Clean Architecture in the project, the problem with your sample project is, we can/should not have LiveData in domain layer (Listing).
We are gonna have problem on InMemoryByPageKeyRepository.
I've tried using Streams library (toFlowable), but it needs LivecycleOwner as the parameter.
And I'm not really interested in to add LiveData to the domain layer.
How would you deal with this?!
Thanks in advance