~/talk

Demystifying Dagger

Talkat Droidcon London 2023 · 2023-10-26..10-27· [android]
github:rharter
slides:none on file

Asserts Dagger remains useful and explains how it works under the hood: annotation processing generates Java factories like CrashReporter_Factory and members injectors, each implementing JSR-330 Provider<T>; modules produce provider classes (e.g. CrashModule_provideBackend_factory), qualifiers disambiguate primitives, components/subcomponents form a directed acyclic graph, and scoping wraps providers to cache instances. Mentions using Anvil/Hilt to merge modular contributions into a generated DaggerAppComponent and having used Dagger for at least a decade.

AI-written summary · about

  1. 0:00Introduction to Dagger
  2. 1:56Dependency injection basics
  3. 5:53JSR 330 standard
  4. 8:23Constructor injection
  5. 12:36Member injection
  6. 18:15Provider injection
  7. 25:37Qualifiers in Dagger
  8. 29:40Graph components
  9. 34:03Component scopes
  10. 40:27Subcomponents explained
  11. 44:01Dagger with Hilt and Anvil
  12. 47:57Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.