glide
glide copied to clipboard
Impossible to pass runtime dependencies using GlideAppModule
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.