I have using Glide to download images for quite a long time, so the code like this are every where:
GlideApp.with(getContext())
.load(imgUrl)
.into(imgView);
And suddenly I need to log every image's url for further analysis. Instead of searching every usage of Glade and changing the code like this:
GlideApp.with(getContext())
.load(imgUrl)
.listener(requestListener) // log urls through listener
.into(imgAd);
is there any way that I could add the requestListener globally like in the default options of Glide so that I don't need to search and change every Glide usage throughout the application?
I use Glide v4 and I have checked the post which log the urls directly to logcat but not to my local storage for further analysis.