Added sentry

This commit is contained in:
Juan Gilsanz Polo
2024-02-24 02:06:11 +01:00
parent ac340c108b
commit da995b8961
13 changed files with 80 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
import 'dart:io';
import 'package:flutter_custom_tabs/flutter_custom_tabs.dart' as flutter_custom_tabs;
import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:url_launcher/url_launcher.dart' as url_launcher;
void openUrl(String url) async {
@@ -19,13 +20,13 @@ void openUrl(String url) async {
),
);
} catch (e, stackTrace) {
// Sentry.captureException(e, stackTrace: stackTrace);
Sentry.captureException(e, stackTrace: stackTrace);
}
} else {
try {
url_launcher.launchUrl(Uri.parse(url));
} catch (e, stackTrace) {
// Sentry.captureException(e, stackTrace: stackTrace);
Sentry.captureException(e, stackTrace: stackTrace);
}
}
}