-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
built_value codegen support #532
Comments
I haven't tried |
Alright, my draft should support most built_value features, ill open an wip pr while i implement the remaining (EnumClass) |
This is great. Worked a treat with my existing BuiltValue classes. |
How did you manage this? did you just check out his PR and have it locally? |
works for me also however its not null safe, ive started going through to try and make it null safe but its gonna take too long for me to commit to it |
any new on this? |
Theres a repo that adds support, it generates the adapters fine and its also null safe: https://pub.dev/packages/hive_built_value But it has some inconsistencies and since that is not official I'm worried on long-term support. For example this function is not in there: Hive.resetAdapters(); |
Is your feature request related to a problem? Please describe.
I want to start using built_value from now on on my projects, and a big thing that needs adressing is hive support, as i do not want to write TypeAdapter s manually.
Describe the solution you'd like
TypeAdapter codegen being built_value aware, being able to properly read and write like regular classes. Although, full proper support with HiveLists is a whole other beast because of the mutability of the structure
Describe alternatives you've considered
Im preparing the described feature, but i wanted to know if it is an welcome addition to hive in general or if i should keep my changes local.
Version
The text was updated successfully, but these errors were encountered: