~/talk

Hilt: Dependency Injection for the mere mortals

Talkat 360|AnDev 2020 · on Friday, 2020-07-24· [android, developer-experience]
name:Murat
links:none on file
name:Manuel
links:none on file
slides:none on file

Hilt provides a standard DI solution for Android by supplying lifecycle-aware dependency containers for Android classes and managing those lifecycles automatically. It is built on top of Dagger, leveraging Dagger’s compile-time checks, performance and tooling while hiding much of Dagger’s complexity.

AI-written summary · about

  1. 0:00Start
  2. 4:29Construction logic vs business logic
  3. 4:57DI Recap
  4. 6:22What about Dagger?
  5. 7:06DI Solution Goals
  6. 8:30class MusicPlayer Inject constructor()
  7. 10:16class MusicPlayer Inject constructor private val db: MusicDatabase
  8. 10:50Module Installin(Application Component::elass) object DataModule
  9. 16:47class PlayViewModel View Model Inject constructor Assisted val savedStateHandle: SavedStateHandle val do: MusicDatabase
  10. 18:16Hilt Annotations
  11. 23:58Hilt Testing Annotations
  12. 24:20Testing tips
  13. 25:15Migration
  14. 27:05Hilt Anatomy
  15. 27:20Aggregation
  16. 30:48Hilt and Dagger?
  17. 34:00Component modules - | Preferences Module::class, Database Module::class
  18. 35:53Hilt benefits
  19. 36:58Creating your own hierarchy
  20. 37:21Android Entry Points Android EntryPoint
  21. 38:46What's next?
  22. 40:41Give us feedback!
  23. 41:45More resources!
~/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.