mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-05 12:01:35 +00:00
new about fragment
This commit is contained in:
parent
8049ddec45
commit
c9bd85cbf3
15 changed files with 250 additions and 425 deletions
|
|
@ -39,8 +39,6 @@ public final class CrashReporter implements Thread.UncaughtExceptionHandler {
|
|||
|
||||
private CrashReporter(@NonNull final Application application) {
|
||||
this.application = application;
|
||||
// set your email(s) here to receive crash reports
|
||||
// this.email = "<email>";
|
||||
this.email = "instagrabber@austinhuang.me";
|
||||
this.crashLogsZip = new File(application.getExternalCacheDir(), "crash_logs.zip");
|
||||
}
|
||||
|
|
@ -70,7 +68,9 @@ public final class CrashReporter implements Thread.UncaughtExceptionHandler {
|
|||
.append("\r\nDEVICE : ").append(Build.DEVICE)
|
||||
.append("\r\nPRODUCT : ").append(Build.PRODUCT)
|
||||
.append("\r\nHOST : ").append(Build.HOST)
|
||||
.append("\r\nTAGS : ").append(Build.TAGS);
|
||||
.append("\r\nTAGS : ").append(Build.TAGS)
|
||||
.append("\r\nINSTRUCTION : Please attach details on how to produce this crash. Your help is appreciated.")
|
||||
.append("\r\nPRIVACY : Your email address and crash report will be made PUBLIC on the GitHub repository.");
|
||||
|
||||
reportBuilder.append("\r\n\r\nStack:\r\n==============\r\n");
|
||||
final Writer result = new StringWriter();
|
||||
|
|
@ -107,7 +107,7 @@ public final class CrashReporter implements Thread.UncaughtExceptionHandler {
|
|||
|
||||
public synchronized CrashReporter zipLogs() {
|
||||
final File logDir = Utils.logCollector != null ? Utils.logCollector.getLogDir() :
|
||||
new File(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N ? application.getDataDir() : application.getFilesDir(), "ur_mom_gay_logs");
|
||||
new File(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N ? application.getDataDir() : application.getFilesDir(), "crashlogs");
|
||||
|
||||
try (final FileOutputStream fos = new FileOutputStream(crashLogsZip);
|
||||
final ZipOutputStream zos = new ZipOutputStream(fos)) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class LogCollector {
|
|||
|
||||
public LogCollector(@NonNull final Application app) {
|
||||
logDir = new File(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N ? app.getDataDir() : app.getFilesDir(),
|
||||
"ur_mom_gay_logs");
|
||||
"crashlogs");
|
||||
|
||||
if (logDir.exists()) deleteRecursive(logDir);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue