Skip to content

Commit 2a0f5d4

Browse files
committed
run format
1 parent d7d9aa9 commit 2a0f5d4

File tree

3 files changed

+30
-37
lines changed

3 files changed

+30
-37
lines changed

flutter/example/integration_test/integration_test.dart

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ void main() {
4343
await setupSentryAndApp(tester);
4444

4545
final exception = SentryException(
46-
type: 'StarError',
47-
value: 'I have a bad feeling about this...'
48-
);
46+
type: 'StarError', value: 'I have a bad feeling about this...');
4947
final sentryId = await Sentry.captureException(exception);
5048

5149
expect(sentryId != SentryId.empty(), true);
@@ -63,11 +61,10 @@ void main() {
6361
await setupSentryAndApp(tester);
6462

6563
final feedback = SentryUserFeedback(
66-
eventId: SentryId.newId(),
67-
name: 'fixture-name',
68-
69-
comments: 'fixture-comments'
70-
);
64+
eventId: SentryId.newId(),
65+
name: 'fixture-name',
66+
67+
comments: 'fixture-comments');
7168
await Sentry.captureUserFeedback(feedback);
7269
});
7370

@@ -88,7 +85,6 @@ void main() {
8885
await setupSentryAndApp(tester);
8986

9087
await Sentry.configureScope((scope) async {
91-
9288
await scope.setContexts('contexts-key', 'contexts-value');
9389
await scope.removeContexts('contexts-key');
9490

flutter/example/lib/main.dart

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,33 @@ final _channel = const MethodChannel('example.flutter.sentry.io');
2222

2323
Future<void> main() async {
2424
await setupSentry(() => runApp(
25-
SentryScreenshotWidget(
26-
child: DefaultAssetBundle(
27-
bundle: SentryAssetBundle(enableStructuredDataTracing: true),
28-
child: MyApp(),
29-
),
30-
),
31-
));
25+
SentryScreenshotWidget(
26+
child: DefaultAssetBundle(
27+
bundle: SentryAssetBundle(enableStructuredDataTracing: true),
28+
child: MyApp(),
29+
),
30+
),
31+
));
3232
}
3333

3434
Future<void> setupSentry(AppRunner appRunner) async {
35-
await SentryFlutter.init(
36-
(options) {
37-
options.dsn = _exampleDsn;
38-
options.tracesSampleRate = 1.0;
39-
options.reportPackages = false;
40-
options.addInAppInclude('sentry_flutter_example');
41-
options.considerInAppFramesByDefault = false;
42-
options.attachThreads = true;
43-
options.enableWindowMetricBreadcrumbs = true;
44-
options.addIntegration(LoggingIntegration());
45-
options.attachScreenshot = true;
46-
// We can enable Sentry debug logging during development. This is likely
47-
// going to log too much for your app, but can be useful when figuring out
48-
// configuration issues, e.g. finding out why your events are not uploaded.
49-
options.debug = true;
50-
},
51-
// Init your App.
52-
appRunner: appRunner
53-
);
35+
await SentryFlutter.init((options) {
36+
options.dsn = _exampleDsn;
37+
options.tracesSampleRate = 1.0;
38+
options.reportPackages = false;
39+
options.addInAppInclude('sentry_flutter_example');
40+
options.considerInAppFramesByDefault = false;
41+
options.attachThreads = true;
42+
options.enableWindowMetricBreadcrumbs = true;
43+
options.addIntegration(LoggingIntegration());
44+
options.attachScreenshot = true;
45+
// We can enable Sentry debug logging during development. This is likely
46+
// going to log too much for your app, but can be useful when figuring out
47+
// configuration issues, e.g. finding out why your events are not uploaded.
48+
options.debug = true;
49+
},
50+
// Init your App.
51+
appRunner: appRunner);
5452
}
5553

5654
class MyApp extends StatefulWidget {

flutter/test/sentry_native_channel_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ void main() {
3737
final sut = fixture.getSut();
3838
await sut.beginNativeFrames();
3939

40-
verify(fixture.methodChannel
41-
.invokeMethod('beginNativeFrames'));
40+
verify(fixture.methodChannel.invokeMethod('beginNativeFrames'));
4241
});
4342

4443
test('endNativeFrames', () async {

0 commit comments

Comments
 (0)