From a42d888eb7e7216ab14771c12a7f0222e2afb0b7 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Thu, 3 Sep 2020 18:12:53 +0200 Subject: [PATCH] Share only stack trace (#675) Share only stack trace Co-authored-by: M M Arif Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/675 --- app/src/main/java/org/mian/gitnex/activities/BaseActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/mian/gitnex/activities/BaseActivity.java b/app/src/main/java/org/mian/gitnex/activities/BaseActivity.java index f0d0c1e0..4c2a0939 100644 --- a/app/src/main/java/org/mian/gitnex/activities/BaseActivity.java +++ b/app/src/main/java/org/mian/gitnex/activities/BaseActivity.java @@ -5,6 +5,7 @@ import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import org.acra.ACRA; import org.acra.BuildConfig; +import org.acra.annotation.AcraCore; import org.acra.annotation.AcraNotification; import org.acra.config.CoreConfigurationBuilder; import org.acra.config.LimiterConfigurationBuilder; @@ -16,6 +17,7 @@ import org.mian.gitnex.helpers.FontsOverride; import org.mian.gitnex.helpers.TimeHelper; import org.mian.gitnex.helpers.TinyDB; import org.mian.gitnex.notifications.NotificationsMaster; +import static org.acra.ReportField.*; /** * Author M M Arif @@ -25,6 +27,7 @@ import org.mian.gitnex.notifications.NotificationsMaster; resTitle = R.string.crashTitle, resChannelName = R.string.setCrashReports, resText = R.string.crashMessage) +@AcraCore(reportContent = { ANDROID_VERSION, PHONE_MODEL, STACK_TRACE }) public abstract class BaseActivity extends AppCompatActivity {