Skip to content

Commit

Permalink
Add package to override hive
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Nov 25, 2024
1 parent 62dfe35 commit a57a12a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions overrides/hive/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'package:hive/hive.dart';

void main() async {
Hive.init('test');
final box = await Hive.openBox('test');
box.put('key', 'value');
print(box.get('key'));
}
11 changes: 11 additions & 0 deletions overrides/hive/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: hive_override_example

environment:
sdk: ^3.4.0

dependencies:
hive: any

dependency_overrides:
hive:
path: ../
1 change: 1 addition & 0 deletions overrides/hive/lib/hive.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export 'package:hive_ce/hive.dart';
7 changes: 7 additions & 0 deletions overrides/hive/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: hive

environment:
sdk: ^3.4.0

dependencies:
hive_ce: any

0 comments on commit a57a12a

Please sign in to comment.