hive
hive copied to clipboard
Migrate Hive v2 to support Flutter web WASM
Migrates Hive v2 to support Flutter web WASM since v3 and v4 are major changes (and not stable)
This should not be merged into the main branch, but there isn't a better option right now. This should probalby be merged into a branch created off of the tag v2.2.3
since that is the commit these changes are based on.
IF YOU WANT TO USE THIS NOW
I have released the following packages to replace Hive in my projects. The intent is to keep these up to date with modern Dart/Flutter standards.
hive_ce hive_ce_flutter hive_ce_generator
If you do not want to use Hive Community Edition, you can use this PR directly:
dependency_overrides:
hive:
git:
url: https://github.com/Rexios80/hive
ref: 4eb0dbc7807e7210831a2c71f056ac15c9e32e52
path: hive
hive_generator:
git:
url: https://github.com/Rexios80/hive
ref: 4eb0dbc7807e7210831a2c71f056ac15c9e32e52
path: hive_generator
Make sure to run the generator after updating
Related issues
https://github.com/isar/hive/issues/1287 https://github.com/isar/isar/issues/1617 https://github.com/isar/isar/pull/1616