I have a situation where I need Retrofit
instance with caching , but most cases I use default Retrofit instance, I know that caching require using OkHttp
client, but what I need is an elegant way to use those two instance without replicating code ..
I thought that I may use Dagger
to handle this, but it's an old project and I'm trying to enhance it one part at a time. any thoughts?
Aucun commentaire:
Enregistrer un commentaire