I'm building an app using MVP and I'm using a repository pattern.
I have a local data source, which is a DB where I store certain information.
I have a remote data source, in which using Retrofit, I make an API request. This request has a @Query, and that is a String that is stored in the SharedPreferences.
I thought of adding the SharedPreferences to the Repository, as a data source, but since the remote data source should make use of these SharedPreferences -which would be a different data source than the remote- I don't see this architecture so clear anymore.
Thanks a lot for the help in advance.