Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package to override hive #50

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading