~/talk

Using Hilt in a multi module project

Talkat droidcon EMEA 2020 · 2020-10-08..10-09· [android]
slides:none on file

Compares Dagger vs Hilt with concrete migration notes and shows Hilt’s real mechanics: modules use the installIn annotation to bind into generated components, Activities and Fragments get injection via AndroidEntryPoint, ViewModels use the Hilt injection helpers, and tests replace bindings with @BindValue or remove production modules with uninstallModules. Explains monolithic generated components, build-speed gains from small feature-only test apps, how Clean Architecture inversion works across Gradle modules, and the current limitation around dynamic feature modules.

AI-written summary · about

  1. 0:00Introduction to Hilt
  2. 1:45Dependency injection basics
  3. 5:22Dagger vs Hilt
  4. 8:39Hilt components and modules
  5. 12:37Android entry points
  6. 14:45ViewModel injection
  7. 15:27Monolithic components
  8. 19:24Entry point annotation
  9. 20:07Testing with Hilt
  10. 25:30Multi-module architecture
  11. 28:06Clean architecture with Hilt
  12. 32:05Dynamic feature modules
  13. 33:29Key takeaways
  14. 34:32Q&A session
~/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.