Skip to content

Commit

Permalink
main: initialize sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
officialpiyush committed Feb 23, 2021
1 parent f09971c commit 820f96f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import 'package:flutter/material.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:steeker/pages/landing_page.dart';

void main() {
runApp(MyApp());
Future<void> main() async {
await SentryFlutter.init(
(options) {
options.dsn = 'https://[email protected]/5648249';
},
appRunner: () => runApp(SteekerApp()),
);
}

class MyApp extends StatelessWidget {
// This widget is the root of your application.
class SteekerApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
Expand Down
2 changes: 1 addition & 1 deletion test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'package:steeker/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());
await tester.pumpWidget(SteekerApp());

// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
Expand Down

0 comments on commit 820f96f

Please sign in to comment.