Skip to content

Commit

Permalink
clean up sentry options and disable unused things
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Nov 18, 2024
1 parent 99eca1d commit 2e9fc39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Future<void> main() async {
DynamicConfigInfo dynamicConfigInfo = await getDynamicConfigInfo();
mainLogger.info("Detected Environment: $environment");

//initialize the foreground service library
if (Platform.isAndroid) {
FlutterForegroundTask.initCommunicationPort();
}
Expand All @@ -116,13 +117,10 @@ Future<void> main() async {
..environment = environment
..tracesSampleRate = dynamicConfigInfo.sentryTraces
..profilesSampleRate = dynamicConfigInfo.sentryProfiles
..attachThreads = true
..beforeSend = beforeSend
..reportPackages = false
..attachStacktrace = true
..attachScreenshot = true
..screenshotQuality = low
..attachViewHierarchy = false
..screenshotQuality = SentryScreenshotQuality.low
..experimental.replay.sessionSampleRate = dynamicConfigInfo.sentryReplay;
},
// Init your App.
Expand Down

0 comments on commit 2e9fc39

Please sign in to comment.