~/talk

Dagger Hilt: Live Code Tutorial, Pros and Cons

Talkat Android Summit 2020 · 2020-10-08..10-09· [android]
links:none on file
slides:none on file

Live migration of an Android app from Dagger 2 to Hilt in ~25 minutes, with actual edits: add @HiltAndroidApp and Hilt Gradle deps, convert modules to @InstallIn components, add @AndroidEntryPoint to activities/fragments, remove manual component boilerplate, and switch ViewModel wiring to Hilt + savedStateHandle assisted injection. App runs after fixes; gotchas include extra annotation processors (build‑time cost), manual AppCompatActivity binding and FragmentFactory edge cases, and limited immediate benefit if already on vanilla Dagger 2.

AI-written summary · about

  1. 0:00Introduction
  2. 0:10Dagger and Hilt overview
  3. 2:42Reviewing the tutorial app
  4. 4:43Migration strategy
  5. 8:55Setting up Hilt dependencies
  6. 10:48Understanding Hilt components
  7. 13:58Refactoring modules and scopes
  8. 21:05Injecting into UI components
  9. 30:24Handling view models
  10. 35:42Summary of Hilt concepts
  11. 37:15Pros and cons of Hilt
  12. 41:33Future predictions and Q&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.