Android-CleanArchitecture
Android-CleanArchitecture copied to clipboard
Factory in Data Layer to return Single<Repository>
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?
....