glide icon indicating copy to clipboard operation
glide copied to clipboard

Impossible to pass runtime dependencies using GlideAppModule

Open kroussevrb opened this issue 3 years ago • 0 comments
trafficstars

If we want to pass authenticated okhttp client to our implementation of GlideAppModule, an authenticated okhttp client that has dynamic and changing runtime dependencies, we cannot do that, because the way GlideAppModule is done, we need to construct everything it needs inside of the declaration so that it is constructed in compile time.

Disabling the ability to do Glide.with(context).registry.replace was a very bad decision.

kroussevrb avatar Jun 24 '22 07:06 kroussevrb