We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usually, we have multiple repos in the app, each responsible for a model. So for example:
Same can be done to the local/remote DS, or as well as the DAOs.
The main reason for this is simply better SRP.
Currently in the app, we have only one repo, I think this can refactored.
The text was updated successfully, but these errors were encountered:
Now we have the data repo interface is as followes:
interface DataRepositorySource { suspend fun requestRecipes(): Flow<Resource<Recipes>> suspend fun doLogin(loginRequest: LoginRequest): Flow<Resource<LoginResponse>> suspend fun addToFavourite(id: String): Flow<Resource<Boolean>> suspend fun removeFromFavourite(id: String): Flow<Resource<Boolean>> suspend fun isFavourite(id: String): Flow<Resource<Boolean>> }
I think we can easily break down into 3 separate repos:
I'm still thinking about the last two, should we merge them into one or keep them separate, so if anyone with any ideas please let me know.
Sorry, something went wrong.
No branches or pull requests
Usually, we have multiple repos in the app, each responsible for a model. So for example:
Same can be done to the local/remote DS, or as well as the DAOs.
The main reason for this is simply better SRP.
Currently in the app, we have only one repo, I think this can refactored.
The text was updated successfully, but these errors were encountered: