chore: integrate Hive for local storage management
- Added `hive_ce` and `hive_ce_flutter` dependencies for enhanced local storage capabilities. - Refactored the main application to initialize Hive and migrate existing data. - Updated storage service implementations to utilize Hive for managing application settings and task queues. - Removed the deprecated `StorageService` class to streamline the codebase and improve maintainability.
This commit is contained in:
10
lib/core/persistence/persistence_providers.dart
Normal file
10
lib/core/persistence/persistence_providers.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
import 'hive_boxes.dart';
|
||||
|
||||
part 'persistence_providers.g.dart';
|
||||
|
||||
/// Provides access to eagerly opened Hive boxes. Must be overridden in [main].
|
||||
@Riverpod(keepAlive: true)
|
||||
HiveBoxes hiveBoxes(Ref ref) =>
|
||||
throw UnimplementedError('Hive boxes must be provided during bootstrap.');
|
||||
Reference in New Issue
Block a user