Room 2.5.0-alpha01

2.5.0-alpha01
Added 1
  • Added API for a multi-process lock at the FrameworkSQLite level to protect multi-process first-time database creation and migrations.
Changed 4
  • Converted room-common from Java to Kotlin.
  • Some properties moved into companion objects during the Kotlin conversion, so Kotlin callers of the old API must add the .Companion suffix when accessing them.
  • Converted room-migration from Java to Kotlin.
  • Converted paging related files in room-runtime from Java to Kotlin.
Fixed 3
  • Room @IntDef usage is now enforced in Kotlin sources.
  • Re-allowed @Query in property getters to fix a source compatibility issue.
  • Added support for internal properties in Kotlin sources by matching getters and setters using source function names instead of JVM names.

From Room

API Changes Fixed an issue where Room @IntDef usage were not being enforced in Kotlin sources. ( I75f41, b/217951311) Fixed a source compatibility issue to re-allow @Query in property getters. ( I0a09b) Converted room-common from Java to Kotlin. ( I69c48, b/206858235) Note: You may encounter source incompatibility issues as some properties have been moved into companion objects during the library conversion to Kotlin. If your code was in Kotlin and calling the old version of Room, the new version will need the ".Companion" suffix when accessing these properties. Converted room-migration from Java to Kotlin. ( I2724b, b/206858622) Converted paging related files in room-runtime from Java to Kotlin. ( I82fc8, b/206859668) Added API for multi-process lock and usage at the FrameworkSQLite* level, to protect multi-process 1st time database creation and migrations. ( Ied267, b/193182592) Bug Fixes Added support for internal properties in Kotlin sources. This is a slight behavior change in Room where it will use the source name of functions while matching them to properties as getters/setters (previously, it was using JVM name of the function which is different for internal functions/properties). If you are using custom @JvmName annotations to match getters/setters to private properties, please double check the generated code after the update ( If6531, b/205289020)

View original

Upgraded? How did it go?

Discussion