GithubIt icon indicating copy to clipboard operation
GithubIt copied to clipboard

An issue with your approach in Clean Architecture

Open Drjacky opened this issue 6 years ago • 0 comments

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

Drjacky avatar Oct 19 '19 10:10 Drjacky