Sentry integration for Refena.
Setup
Add the following dependencies to your pubspec.yaml
:
# pubspec.yaml
dependencies:
refena_sentry: <version>
Add the RefenaSentryObserver
:
void main() async {
await SentryFlutter.init(
(options) {
options.dsn = 'https://example@sentry.io/example';
},
appRunner: () {
runApp(
RefenaScope(
observers: [
RefenaSentryObserver(), // <-- Add the observer
],
child: MyApp(),
),
);
},
);
}