Skip to content

Commit

Permalink
Move function to a lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleangels committed Jan 24, 2025
1 parent 59f0740 commit a6513e5
Showing 1 changed file with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,19 @@
public class SentryInitializer {

public static void initialize(Context context) {
new Thread(() -> {
SentryAndroid.init(context, options -> {
options.setDsn("https://8b52cc2148b94716a69c9a4f0c0b4513@o244019.ingest.us.sentry.io/6270764");
options.setRelease(BuildConfig.VERSION_NAME);
options.enableAllAutoBreadcrumbs(true);
options.setAttachScreenshot(true);
options.setAttachViewHierarchy(true);
options.setTracesSampleRate(1.0);
options.setEnableAppStartProfiling(true);
options.setAnrEnabled(true);
options.setCollectAdditionalContext(true);
options.setEnableFramesTracking(true);
options.setEnableAppStartProfiling(true);
options.setEnableRootCheck(true);
});
}).start();
new Thread(() -> SentryAndroid.init(context, options -> {
options.setDsn("https://8b52cc2148b94716a69c9a4f0c0b4513@o244019.ingest.us.sentry.io/6270764");
options.setRelease(BuildConfig.VERSION_NAME);
options.enableAllAutoBreadcrumbs(true);
options.setAttachScreenshot(true);
options.setAttachViewHierarchy(true);
options.setTracesSampleRate(1.0);
options.setEnableAppStartProfiling(true);
options.setAnrEnabled(true);
options.setCollectAdditionalContext(true);
options.setEnableFramesTracking(true);
options.setEnableAppStartProfiling(true);
options.setEnableRootCheck(true);
})).start();
}
}

0 comments on commit a6513e5

Please sign in to comment.