From 62787cb786634017bda683ca2d185cf3d324bfd4 Mon Sep 17 00:00:00 2001 From: Pablo Date: Wed, 13 Mar 2024 10:37:42 +0100 Subject: [PATCH] add anr reports in sentry Signed-off-by: Pablo --- app/src/main/java/org/dhis2/App.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/dhis2/App.java b/app/src/main/java/org/dhis2/App.java index a1efb3fc2f..099a38e85d 100644 --- a/app/src/main/java/org/dhis2/App.java +++ b/app/src/main/java/org/dhis2/App.java @@ -131,6 +131,7 @@ public void initCrashController() { if (areTrackingPermissionGranted()) { SentryAndroid.init(this, options -> { options.setDsn(BuildConfig.SENTRY_DSN); + options.setAnrReportInDebug(true); // Add a callback that will be used before the event is sent to Sentry. // With this callback, you can modify the event or, when returning null, also discard the event.