~/talk

Room Renovations

Talkat droidcon San Francisco 2024 · 2024-06-06..06-07· [android]
links:none on file
slides:none on file

Room now ships as Room KMP v2.70-alpha1 supporting Android, JVM desktop and native (iOS, macOS, Linux) and requires the Room Gradle plugin, KSP, schema export and common source sets; the recommended bundled SQLite driver embeds a consistent sqlite build while a framework driver can use OS SQLite. Migration is incremental: replace support-SQLite usages with sqlite driver APIs, convert DAOs to suspend/coroutines (use expect/actual for platform-only blocking APIs), and keep Room in compatibility mode until setDriver; rawQuery DAOs, prepackaged DBs, callbacks and multi-instance invalidation remain Android-only for now.

AI-written summary · about

  1. 0:00Room library and KMP support
  2. 1:07Setting up Room KMP
  3. 3:58Entities, DAOs, and database
  4. 5:46SQLite drivers setup
  5. 7:11Platform-specific database
  6. 10:21Migrating projects to Room KMP
  7. 12:09Migrating to coroutines
  8. 13:58Common code declarations
  9. 15:03Incremental migration
  10. 16:27Room KMP differences
  11. 17:09Closing 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.