~/talk

Effective DI for Multi Module Project

Talkat droidcon APAC 2020 · 2020-12-14..12-15· [android, frontend-architecture]
name:Adit Lal
links:none on file
slides:none on file

Gojek moved a monolithic Android codebase into a 150+ module multimodule repo (20+ product teams) using Dagger2 components and explicit feature scope annotations, a single core singleton component for expensive objects, lazy initialization and a Provider interface to get the core component from context. Concrete rules: prefer component dependencies over subcomponents (removes cyclic graphs and speeds compile), use binds over provides, avoid Dagger-Android boilerplate, and migrate new code to Hilt.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 3:39Problem with monolithic architecture
  3. 7:08Benefits of modularization
  4. 11:44Inversion of Control principle
  5. 15:58Modularization vs Dagger dependency
  6. 18:03Avoiding subcomponents in Dagger
  7. 22:44Implementing feature scoping
  8. 25:14Core component provider mechanism
  9. 28:00Activity scoping with Dagger
  10. 31:07Pro tips for Dagger usage
  11. 32:10Q&A session begins
  12. 44:05Closing remarks
~/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.