Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
7a9ea7d
setup sentry hive library
denrase Oct 10, 2023
2fa0411
Add SentryBox with first test
denrase Oct 10, 2023
071dd1e
test added spans
denrase Oct 10, 2023
bee44de
Merge branch 'main' into feat/hive
denrase Oct 16, 2023
5881d84
Add sentry hive impl
denrase Oct 16, 2023
296e25e
introduce base box to avoid duplication
denrase Oct 16, 2023
6ea6914
implement lazy box test
denrase Oct 17, 2023
e35a82d
expose sentry hive and updata documentation
denrase Oct 17, 2023
22bed30
add hive to flutter example app
denrase Oct 17, 2023
e5c2b9b
test throwing in base_box, cleanup
denrase Oct 23, 2023
7a41832
test lazy box error cases
denrase Oct 23, 2023
ee12365
test sentry hive impl failures
denrase Oct 23, 2023
f72c0a8
run fix & format
denrase Oct 23, 2023
8fa3182
fix test failure race condition
denrase Oct 23, 2023
08cfc16
add hive workflow, update other workflows
denrase Oct 23, 2023
69d6404
Merge branch 'main' into feat/hive
denrase Oct 23, 2023
f5dd006
add changelog entry
denrase Oct 23, 2023
9237bee
remove path+provider from dev_dependencies
denrase Oct 23, 2023
887adb0
add coverage dev dependency
denrase Oct 23, 2023
ea89cf6
fix deprecation warnings
denrase Oct 23, 2023
8c7e7cc
Merge branch 'main' into feat/hive
denrase Oct 30, 2023
5f7c196
fix changelog
denrase Oct 30, 2023
2ca2783
move span wrapping on own class to avoid duplication
denrase Oct 30, 2023
380c8a2
add sentry box collection
denrase Oct 30, 2023
71d3f8e
test added spans, fix imports
denrase Oct 31, 2023
d286b62
test throwing code
denrase Oct 31, 2023
1f9c37f
Merge branch 'main' into feat/hive
denrase Oct 31, 2023
9e02a29
fix changelog
denrase Oct 31, 2023
e888f6f
Merge branch 'main' into feat/hive
denrase Nov 6, 2023
22a1637
change dbSystem value
denrase Nov 6, 2023
d959c80
Merge branch 'main' into feat/hive
denrase Nov 6, 2023
158f93f
change db system
denrase Nov 6, 2023
aeed961
Merge branch 'main' into feat/hive
denrase Nov 13, 2023
f99d255
remove unneccessary async & await
denrase Nov 13, 2023
da8309f
Merge branch 'main' into feat/hive
buenaflor Nov 15, 2023
7119d74
Fix analyze
buenaflor Nov 15, 2023
34ea841
Formatting
buenaflor Nov 15, 2023
2db8de9
Add changelog symlink
buenaflor Nov 15, 2023
fccc34c
Ignore hive coverage
buenaflor Nov 15, 2023
19ebd4b
Create symlink for dartdoc_options
buenaflor Nov 15, 2023
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
Prev Previous commit
Next Next commit
Fix analyze
  • Loading branch information
buenaflor committed Nov 15, 2023
commit 7119d744aa0cc42f176fe77f9f78bde28e142d5b
4 changes: 3 additions & 1 deletion .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ targets:
dio:
file:
sqflite:
hive:
drift:
- name: github
- name: registry
Expand All @@ -21,5 +22,6 @@ targets:
pub:sentry_dio:
pub:sentry_file:
pub:sentry_sqflite:
# This needs to be published on pub.dev first before uncommenting
# Initial release on pub.dev needed first before uncommenting
# pub:sentry_drift:
# pub:sentry_hive:
1 change: 1 addition & 0 deletions hive/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ analyzer:
unnecessary_import: ignore
exclude:
- example/**
- test/mocks/mocks.mocks.dart

linter:
rules:
Expand Down
3 changes: 3 additions & 0 deletions hive/lib/src/sentry_box_collection.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:hive/hive.dart';
import 'package:meta/meta.dart';
import 'package:sentry/sentry.dart';

import 'sentry_span_helper.dart';
Expand Down Expand Up @@ -32,6 +33,8 @@ class SentryBoxCollection implements stub.BoxCollection {
_boxCollection.close();
}

/// @nodoc
@internal
void setHub(Hub hub) {
_spanHelper.setHub(hub);
}
Expand Down
4 changes: 2 additions & 2 deletions hive/test/sentry_box_collection_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ void main() {
// open is static and cannot be mocked

test('throwing openBox', () async {
// ignore: inference_failure_on_function_invocation
when(
fixture.mockBoxCollection.openBox(
// ignore: inference_failure_on_function_invocation
fixture.mockBoxCollection.openBox(
any,
preload: anyNamed('preload'),
boxCreator: anyNamed('boxCreator'),
Expand Down