~/talk

Plugging into Anvil and powering up your dependency injection

Talkat droidcon New York 2023 · 2023-09-14..09-15· [android]
links:none on file
slides:none on file

Explains extending Anvil with a custom code generator that reads Kotlin PSI, uses KotlinPoet to emit merge subcomponents and parent interfaces, and registers a feature injector via Dagger multibindings. Claims: migration of ~600 modules and ~500 features, sample apps auto-wire via Anvil, and a measured ~13% clean / ~15% incremental build speedup after replacing kapt/Java stubs. Shows handling factory specs (constructor args), working around Anvil’s generic multibinding limitation, and returning a scoped component holder for runtime use.

AI-written summary · about

  1. 0:00Introduction
  2. 4:22Legacy Dagger setup
  3. 7:35Anvil overview
  4. 15:30Anvil plugin API
  5. 20:53Building custom plugins
  6. 35:17Real-world examples
  7. 39:55Results and benefits
~/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.