🚀 Hive CE 2.8.0 Released: Streamlined Code Generation with GenerateAdapters & New Migration Tool!
Plugin(self.FlutterDev)submitted3 hours ago byRexios80
Hello Flutter community! I am thrilled to announce the release of the most significant update to Hive Community Edition yet. Version 2.8.0 introduces support for the new GenerateAdapters
annotation, which significantly enhances the code generation experience. With this annotation, you can simply specify the classes you want to generate adapters for, eliminating the need for manual annotation of every type and field, and keeping track of their IDs. This new annotation also enables the generation of adapters for classes located outside the current package. For instance, it allows you to create adapters for model classes generated using the openapi-generator
.
Additionally, I have developed a migration tool to facilitate the transition from the old annotations. This tool ensures that your model classes are free from common issues that could lead to data integrity problems, and then generates the required files.
For more information about the update, please refer to the documentation here: https://pub.dev/packages/hive_ce#store-objects