~/talk

Android at Scale @Square

Talkat droidcon SF 2019 · 2019-11-18..11-19· [android, frontend-architecture]
links:none on file
slides:none on file

Square’s Android Point of Sale repo moves from a tangled “hairball” to a mono-repo of many small libraries by enforcing public/impl/impl-wiring modules, banning impl→impl dependencies, and using fakes to cut transitive deps. A 40-injected-object anti-pattern appears in legacy code, the hairball takes two years to kill, development apps drive fast iteration with development apps under 10s builds, and main-app compile time falls from 4+ minutes to ~2 minutes after fixing a Gradle memory leak and tuning with Gradle profiler. The module split enables swapping implementations and faster, isolated UI testing.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:13Growing from a single app
  3. 2:39Breaking the hairball problem
  4. 4:43Mono repository benefits
  5. 6:30Module size and dependencies
  6. 7:13What is a module?
  7. 8:36Advantages of modular design
  8. 9:58Why dependency inversion?
  9. 12:05Separating API and implementation
  10. 13:50New module structure at Square
  11. 17:20Adopting the new structure
  12. 18:46Benefits of separation
  13. 20:10Development apps explained
  14. 22:59Workflow library and navigation
  15. 25:29Using fakes to reduce dependencies
  16. 27:58Build time optimization
  17. 30:03Key takeaways and conclusion
~/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.