~/talk

Dagger-android, under the hood

Talkat Android Makers 2018 · on Monday, 2018-04-23· [developer-experience]
slides:none on file

Walks through the generated code behind AndroidInjection.inject(this) for Dagger 2.10/2.11, shows how @Binds and @BindsInstance seed activity instances into builders, and reconstructs the DispatchingAndroidInjector map/multibindings that look up a factory by the component’s concrete class. Demonstrates the memory‑leak pitfall when builders hold instances and the provider fix that returns fresh factories, explains why exact runtime types are required for lookup, and shows how ContributesAndroidInjector removes boilerplate while actually generating subcomponents.

AI-written summary · about

  1. 0:00Start
  2. 0:07Dagger-android
  3. 1:39Some context (not the class)
  4. 3:23Dependency injection
  5. 8:59@Bindsinstance
  6. 11:55Dagger 2.10
  7. 35:35Dagger 2.11
  8. 38:11Thank you!
~/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.