Skip to content

Commit 8b0fb74

Browse files
committed
Excluded ReportField.SHARED_PREFERENCES from the crash reports. | Close #119.
1 parent b147085 commit 8b0fb74

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

FlowCrypt/src/main/java/com/flowcrypt/email/FlowCryptApplication.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.squareup.leakcanary.LeakCanary;
1616

1717
import org.acra.ACRA;
18+
import org.acra.ReportField;
1819
import org.acra.annotation.ReportsCrashes;
1920
import org.acra.sender.HttpSender;
2021

@@ -28,6 +29,35 @@
2829
*/
2930
@ReportsCrashes(
3031
formUri = "https://api.cryptup.io/help/acra",
32+
customReportContent = {
33+
ReportField.ANDROID_VERSION,
34+
ReportField.APP_VERSION_CODE,
35+
ReportField.APP_VERSION_NAME,
36+
ReportField.AVAILABLE_MEM_SIZE,
37+
ReportField.BRAND,
38+
ReportField.BUILD,
39+
ReportField.BUILD_CONFIG,
40+
ReportField.CRASH_CONFIGURATION,
41+
ReportField.CUSTOM_DATA,
42+
ReportField.DEVICE_FEATURES,
43+
ReportField.DISPLAY,
44+
ReportField.DUMPSYS_MEMINFO,
45+
ReportField.ENVIRONMENT,
46+
ReportField.FILE_PATH,
47+
ReportField.INITIAL_CONFIGURATION,
48+
ReportField.INSTALLATION_ID,
49+
ReportField.IS_SILENT,
50+
ReportField.LOGCAT,
51+
ReportField.PACKAGE_NAME,
52+
ReportField.PHONE_MODEL,
53+
ReportField.PRODUCT,
54+
ReportField.REPORT_ID,
55+
ReportField.STACK_TRACE,
56+
ReportField.TOTAL_MEM_SIZE,
57+
ReportField.USER_APP_START_DATE,
58+
ReportField.USER_CRASH_DATE,
59+
ReportField.USER_EMAIL
60+
},
3161
httpMethod = HttpSender.Method.POST,
3262
reportType = HttpSender.Type.JSON)
3363
public class FlowCryptApplication extends Application {

0 commit comments

Comments
 (0)