Added sentry
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user