- Added a general callback API, RoomDatabase.QueryCallback, that is invoked when queries are about to execute, useful for logging in debug builds
- The query callback can be set via RoomDatabase.Builder#setQueryCallback()
- Room now defaults to using an Enum to String and String to Enum type converter when no type converter is provided
- Room prioritizes an existing type converter for an enum over the default enum converter when one is present
- Fixed an issue where Room would incorrectly disable incremental annotation processing in newer JDK versions
- Fixed an issue where Room could not find the generated class when multiple class loaders are used
From Room
Room now offers a general callback API RoomDatabase.QueryCallback, for when queries are about to execute, which can be useful for logging in debug builds. The callback can be set via RoomDatabase.Builder#setQueryCallback(). ( Iaa513, b/174478034, b/74877608) Room will now default to using an Enum to String and vice versa type converter if none is provided. If a type converter for an enum already exists, Room will prioritize using it over the default one. ( b/73132006) If a one-way type converter for reading already exists for the Enum, Room might accidentally use the built-in String to Enum converter which might not be desired. This is a known issue and can be fixed by making it a two-way converter. See: b/175707691 Fixed an issue where Room would incorrectly disabled incremental annotation processing in newer JDK versions. ( b/171387388) Fixed an issue with Room finding the generated class when multiple class loaders are used. Thanks for the fix 'Serendipity | 892449346@qq.com'! ( b/170141