~/talk

Tell Me Quando - Implementing Feature Flags

Talkat DroidKaigi 2021 · 2021-10-19..10-21· [android, developer-experience]
links:none on file
slides:none on file

Shows a concrete pattern: keep a single codebase and put boolean flags in separate source folders per Gradle build variants (debug/qa/release), implemented as a small FeatureFlags class in each variant. Demonstrates on a simple mood logger app by toggling a new persistence layer using the Realm SDK — Realm code is enabled only in debug, QA/release remain off, and switching variants visibly toggles “new stuff.” Covers Compose/UI routing, testing both flag paths, and cleanup after release.

AI-written summary · about

  1. 0:00Start
  2. 1:00Agenda
  3. 4:51Put the logic in the code
  4. 5:28Requirements for the Flag Variables
  5. 6:59Gradle Trickery
  6. 7:55Different Variables
  7. 9:15Different Files
  8. 10:21Three Common Scenarios
  9. 19:55Major UI Change
  10. 22:21What about the tests?
  11. 22:47Summary
~/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.