What’s New

Room 2.5.0-alpha01

2.5.0-alpha01

Version 2.5.0-alpha01

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) 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

Discussion