Dagger Party Tricks
summary
Shows concrete Dagger techniques: replace eager Retrofit OkHttp injection with a Call.Factory lambda to defer OkHttp init via Call.Factory lambda, shaving ~100–150 ms off app startup by moving trust‑manager, cache and executor setup to the first network thread. Recommends refactoring modules from the bottom so a shim module lets consumers stay unchanged and using constructor injection avoids modules entirely. Uses a private qualifier in the same file to hide impls and maps/sets for plug‑ins as in the Catchup multi‑binding plugin tabs example.
AI-written summary · about
chapters (6)
- 0:00Introduction and background
- 1:16Lazy initialization with Retrofit
- 6:52Modularization strategies
- 10:44Private API isolation with qualifiers
- 11:47Multi-bindings and plugin systems
- 15:17Closing and Q&A
related talks
41mIt,s complicated, but it doesn,t have to be: a Dagger journey
45mDagger 2 - Back to Basics
41mOptimizing Dagger on Android: Developer Workflow and Runtime Performance
38mDagger 2, 2 Years Later
48mDemystifying Dagger
36mKeynote: Asynchronous Dependency Injection
30mPowering up Dagger for Less Code and Cleaner Architecture
59mComparing DI frameworks & internals
