~/talk

Abstracting the Map in Android Architecture

Talkat droidcon Berlin 2018 · 2018-06-25..06-27· [android, frontend-architecture]
slides:none on file

Proposes a concrete architecture that keeps map SDK objects confined to the view layer so swapping providers takes minutes, not months. Uses Android ViewModel + LiveData, Kotlin data/sealed classes for immutability, repositories + interactors for unidirectional flow, and an adapter layer using the mapme adapter plus DiffUtil to avoid wholesale redraws. Shows a working open‑source demo with Google, HERE and Mapbox adapters where only the adapter changes; demonstrates handling 100 markers without clearing and recreating them.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:03Why abstract map dependencies
  3. 2:49Initial MVP structure issues
  4. 3:53Single responsibility principle
  5. 4:54ViewModel and data flow
  6. 6:43Immutability in map objects
  7. 9:31Unidirectional data flow
  8. 10:53Interactors for cross-view communication
  9. 12:41Optimizing map updates with adapters
  10. 15:51Adapter pattern benefits
  11. 16:12Multi-provider demo example
  12. 16:55Next steps and complexity
~/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.