Room 3.0 is a major update to Android's persistence library with several breaking changes. It drops Java code generation and Java Annotation Processing (KAPT) in favor of Kotlin-only output and KSP (Kotlin Symbol Processing). The library now uses KMP-compatible androidx.sqlite driver APIs instead of Android's native SupportSQLite, and adopts a coroutine-first model where all DAO functions are suspend functions or return Kotlin Flow. Platform support is expanded to include JavaScript and WebAssembly, with a new web asynchronous driver backed by Web Workers and OPFS. A compatibility wrapper (room-sqlite-wrapper) is available to ease migration. Room 2 enters maintenance mode, receiving only bug fixes on top of 2.8.0.

3m read timeFrom infoq.com
Post cover image

Sort: