Android-CleanArchitecture icon indicating copy to clipboard operation
Android-CleanArchitecture copied to clipboard

Factory in Data Layer to return Single<Repository>

Open St4B opened this issue 7 years ago • 1 comments

Let's say that we have a factory in data layer that returns a repository (implementation of IRepository) based on some parameters. What do you think about returning Single<IRepository>? I think is better in order to have all the steps of a use case in sequence. Is there any drawback? Do we violate any principle/boundary?

St4B avatar Apr 10 '18 11:04 St4B

....

mosentest avatar Apr 17 '18 02:04 mosentest