~/talk

DIY Dependency Injection with Kotlin

Talkat Android Summit 2019 · 2019-08-14..08-15· [kotlin]
slides:none on file

Builds a DIY dependency injection system in Kotlin that avoids libraries by using constructor injection, named and default parameters, by lazy and simple lambdas; evaluates and rejects Dagger and Koin for codegen and singletons; creates app-level network and session graphs with swappable implementations (live, mock, in‑memory) to support testing and SDK constraints; manages Android lifecycle hacks for activities/fragments; applied to a multi‑module codebase of over sixty modules and successfully replaces heavier DI frameworks.

AI-written summary · about

  1. 0:00Start
  2. 1:43Product Requirements
  3. 2:23Technical Requirements
  4. 3:53Kotlin Language Features
  5. 8:13Avoid Static Instances
  6. 9:48Setter Injection
  7. 10:47Why Constructor Injec class
~/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.