Fixed
Status Update
Comments
da...@google.com <da...@google.com>
jo...@onsalesit.com <jo...@onsalesit.com> #2
For Kotlin 2.0 and KSP 2.0 the Cannot change attributes of configuration ':composeApp:debugFrameworkIosX64' after it has been locked for mutation
really seems like a KSP issue. You should file a bug in their repository with a sample app if possible.
If you downgrade to Kotlin 1.9 then things 'should' work, there are example apps out there with such configuration, like the following one:
da...@google.com <da...@google.com> #3
Yes this does seem like a KSP issue however it only starts happening when room is added to the project. As the template project compiles just fine.
Will try to use the example provided by you to check if it fixes the issue.
Will try to use the example provided by you to check if it fixes the issue.
Description
In Room 2.3.0-alpha04 built-in enum support was added via a enum to string type converter. If a user already has a type converter Room should prioritize using user defined converters but there is a bug where if a one-way out converter (from Cursor to Enum) is defined, Room might incorrectly use the built-in one causing issues. This bug track such problem
It was fixed byhttps://android-review.googlesource.com/c/platform/frameworks/support/+/1524200 , but didn't make it into the 2.3.0-alpha04 release but instead it will be available in the next upcoming release.
As a workaround and one can define a method, for the one-way write converter which will make Room effectively making a two-way converter for the Enum which Room will correctly priortize over the built-in one.