Room 2.7.0

2.7.0
Added 3
  • Room has been refactored into a Kotlin Multiplatform (KMP) library, with current support for Android, iOS, JVM (Desktop), native Mac, and native Linux
  • Room can be configured with an SQLiteDriver to support KMP and the driver APIs
  • Support for KSP2 is added and is recommended when using Room with Kotlin 2.0 or higher
Changed 2
  • Kotlin code generation on KSP is turned on by default when processing is done via KSP, while KAPT or Java-only projects continue to generate Java sources
  • Room now targets the Kotlin 2.0 language and requires projects to compile with Kotlin 2.0 or a higher language version

From Room

Kotlin Multiplatform (KMP) Support: In this release, Room has been refactored to become a Kotlin Multiplatform (KMP) library. Current supported platforms are Android, iOS, JVM (Desktop), native Mac and native Linux. For more information on how to get started using Room KMP, please refer to the official Room KMP documentation. As part of the KMP support, Room can also be configured with an SQLiteDriver, for information on how to migrate an existing app to the driver APIs and to Room KMP, see the migration documentation. Kotlin Code Generation on KSP has been turned ON by default if processing is done via KSP. For KAPT or Java only projects, Room will still generate Java sources. Kotlin 2.0 and KSP2: Room now targets Kotlin language 2.0 and will require projects to also compile with Kotlin 2.0 and equivalent or higher language version. Support for KSP2 is also added and is recommended when using Room with Kotlin 2.0 or higher.

View original

Upgraded? How did it go?

Discussion