File tree 5 files changed +22
-20
lines changed
5 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 8
8
Sentry integration for ` drift ` package
9
9
===========
10
10
11
+ | package | build | pub | likes | popularity | pub points |
12
+ | -------------| -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------------------------------------------------| ------------------------------------------------------------------------------------------------------| ----------------------------------------------------------------------------------------------------------------| ------- |
13
+ | sentry_drift | [ ![ build] ( https://github.com/getsentry/sentry-dart/workflows/sentry-drift/badge.svg?branch=main )] ( https://github.com/getsentry/sentry-dart/actions?query=workflow%3Asentry-drift ) | [ ![ pub package] ( https://img.shields.io/pub/v/sentry_drift.svg )] ( https://pub.dev/packages/sentry_drift ) | [ ![ likes] ( https://img.shields.io/pub/likes/sentry_drift )] ( https://pub.dev/packages/sentry_drift/score ) | [ ![ popularity] ( https://img.shields.io/pub/popularity/sentry_drift )] ( https://pub.dev/packages/sentry_drift/score ) | [ ![ pub points] ( https://img.shields.io/pub/points/sentry_drift )] ( https://pub.dev/packages/sentry_drift/score )
14
+
15
+ Integration for the [ ` drift ` ] ( https://pub.dev/packages/drift ) package.
16
+
17
+ #### Usage
18
+
11
19
- Sign up for a Sentry.io account and get a DSN at https://sentry.io .
12
20
13
21
- Follow the installing instructions on [ pub.dev] ( https://pub.dev/packages/sentry/install ) .
@@ -22,7 +30,7 @@ import 'package:drift/native.dart';
22
30
import 'package:sentry/sentry.dart';
23
31
import 'package:sentry_drift/sentry_drift.dart';
24
32
25
- import '../test/test_database .dart';
33
+ import 'your_database .dart';
26
34
27
35
Future<void> main() async {
28
36
// ATTENTION: Change the DSN below with your own to see the events in Sentry. Get one at sentry.io
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ analyzer:
17
17
deprecated_member_use_from_same_package : warning
18
18
# ignore sentry/path on pubspec as we change it on deployment
19
19
invalid_dependency : ignore
20
- unnecessary_import : ignore
21
20
exclude :
22
21
- example/**
23
22
- test/mocks/mocks.mocks.dart
Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
2
3
- import 'package:drift/backends.dart' ;
4
3
import 'package:drift/drift.dart' ;
5
4
import 'package:meta/meta.dart' ;
6
5
import 'package:sentry/sentry.dart' ;
Original file line number Diff line number Diff line change @@ -139,16 +139,15 @@ class FlutterEnricherEventProcessor implements EventProcessor {
139
139
return < String , String > {
140
140
'has_render_view' : hasRenderView.toString (),
141
141
if (tempDebugBrightnessOverride != null )
142
- 'debug_brightness_override' : describeEnum ( tempDebugBrightnessOverride) ,
142
+ 'debug_brightness_override' : tempDebugBrightnessOverride.name ,
143
143
if (debugPlatformOverride != null )
144
- 'debug_default_target_platform_override' :
145
- describeEnum (debugPlatformOverride),
144
+ 'debug_default_target_platform_override' : debugPlatformOverride.name,
146
145
if (initialLifecycleState != null && initialLifecycleState.isNotEmpty)
147
146
'initial_lifecycle_state' : initialLifecycleState,
148
147
if (defaultRouteName != null && defaultRouteName.isNotEmpty)
149
148
'default_route_name' : defaultRouteName,
150
149
if (currentLifecycle != null )
151
- 'current_lifecycle_state' : describeEnum ( currentLifecycle) ,
150
+ 'current_lifecycle_state' : currentLifecycle.name ,
152
151
// Seems to always return false.
153
152
// Also always fails in tests.
154
153
// See https://github.com/flutter/flutter/issues/83919
Original file line number Diff line number Diff line change @@ -37603,8 +37603,7 @@ class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase {
37603
37603
ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer(
37604
37604
SentryCocoa lib,
37605
37605
ffi.Pointer<
37606
- ffi
37607
- .NativeFunction<
37606
+ ffi.NativeFunction<
37608
37607
ffi.Bool Function(ffi.Pointer<ObjCObject> arg0,
37609
37608
ffi.UnsignedLong arg1, ffi.Pointer<ffi.Bool> arg2)>>
37610
37609
ptr)
@@ -42032,17 +42031,15 @@ class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase {
42032
42031
ffi.Pointer<ffi.Bool> arg1)>>
42033
42032
ptr)
42034
42033
: this._(
42035
- lib
42036
- ._newBlock1(
42037
- _cFuncTrampoline ??= ffi.Pointer.fromFunction<
42038
- ffi.Bool Function(
42039
- ffi.Pointer<_ObjCBlock> block,
42040
- ffi.Pointer<ObjCObject> arg0,
42041
- ffi.Pointer<ffi.Bool> arg1)>(
42042
- _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline,
42043
- false)
42044
- .cast(),
42045
- ptr.cast()),
42034
+ lib._newBlock1(
42035
+ _cFuncTrampoline ??= ffi.Pointer.fromFunction<
42036
+ ffi.Bool Function(
42037
+ ffi.Pointer<_ObjCBlock> block,
42038
+ ffi.Pointer<ObjCObject> arg0,
42039
+ ffi.Pointer<ffi.Bool> arg1)>(
42040
+ _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, false)
42041
+ .cast(),
42042
+ ptr.cast()),
42046
42043
lib);
42047
42044
static ffi.Pointer<ffi.Void>? _cFuncTrampoline;
42048
42045
You can’t perform that action at this time.
0 commit comments