add package field to crash report

This commit is contained in:
Christian Schabesberger 2016-09-13 23:31:06 +02:00
parent af2cddee91
commit 9bd5aa0da4
20 changed files with 4 additions and 19 deletions

View file

@ -1,7 +1,6 @@
package org.schabi.newpipe;
import android.content.Context;
import android.util.Log;
import org.acra.collector.CrashReportData;
import org.acra.sender.ReportSender;

View file

@ -365,6 +365,7 @@ public class ErrorActivity extends AppCompatActivity {
+ "\n" + getContentLangString()
+ "\n" + info.serviceName
+ "\n" + currentTimeStamp
+ "\n" + getPackageName()
+ "\n" + BuildConfig.VERSION_NAME
+ "\n" + getOsString();
@ -379,6 +380,7 @@ public class ErrorActivity extends AppCompatActivity {
.put("request", errorInfo.request)
.put("content_language", getContentLangString())
.put("service", errorInfo.serviceName)
.put("package", getPackageName())
.put("version", BuildConfig.VERSION_NAME)
.put("os", getOsString())
.put("time", currentTimeStamp)