Add local data store adapter layer and Hive scaffold

This commit is contained in:
Rijad Zuzo
2026-02-15 19:05:20 +01:00
parent 2a7d039475
commit 21c911ad4c
13 changed files with 328 additions and 19 deletions
+14
View File
@@ -22,6 +22,20 @@ Use fake gateway for local/offline development:
flutter run --dart-define=USE_FAKE_BACKEND=true
```
## Local Persistence Backend
Default local store:
- `shared_preferences` (stable baseline)
Optional migration path:
```bash
flutter run --dart-define=USE_HIVE_LOCAL_DB=true
```
When enabled, local app state is stored in Hive via the `LocalDataStore` adapter layer.
## Run Tests
```bash