Fixed
Status Update
Comments
yb...@google.com <yb...@google.com> #2
yb...@google.com <yb...@google.com> #3
Yes, kapt incremental compilation support is available since 1.3.40-dev-795
Is there already some plan to add support to Room?
Is there already some plan to add support to Room?
za...@gmail.com <za...@gmail.com> #4
#3 incremental kapt is available in 1.3.30 released yesterday too.
za...@gmail.com <za...@gmail.com> #5
Is there already some ETA?
Description
Version used: 1.1.0-present
Theme used: NA
Devices/Android versions reproduced on: NA build-time
- Relevant code to trigger the issue: Any kotlin data class in an external module. Building the following project can reproduce it:
In Kotlin, data classes will have a primary constructor and sometimes generated synthetic constructors. ROOM's processor will complain about the presence of the synthetic ones (which are usually visible when reading the class file from an external library), but since it's reading metadata it could use it to find the "primary" constructor to know for sure.
Example:
The solution would be to find that constructor, then match it to the corresponding constructor as seen in the elements API