<p dir="auto">For Kotlin projects, Glide currently makes use of KAPT. This is generally quite slow since it requires generating Java stubs before the annotation processing step.</p>
<p dir="auto">KSP offers an alternative to this by making it easier for annotation processors like Glide to more directly use Kotlin's compiler plugin infrastructure. Based on initial benchmarks, using KSP can speed up build times by as much as 2x.</p>
<p dir="auto">Hi,<br>
I have a multi account app, where each account has its own dagger component, and a okhttp instance (theyre cloned from the same base instance so they share threadpools etc). However account specific okhttp client instance has its own authenticator (reauth is specific per account, as its api url is different) which does relogging in case of 401 etc.</p>
<p dir="auto">Point is that I need this account okhttp instance to drive Glide if im in under given account ui tree i.e. I need multiple Glides in app, per account instance.</p>
<p dir="auto">Is there a way to do this? Im only able to inject okhttp loader factory via module, but that all seems to be singleton-y</p>
<p dir="auto">Thanks!</p>