6 package com.google.appinventor.components.runtime;
8 import android.app.Application;
9 import android.content.Context;
10 import android.util.Log;
17 import org.acra.annotation.*;
31 @ReportsCrashes(formKey=
"")
34 private boolean active =
false;
44 public static boolean installed =
true;
48 super.attachBaseContext(base);
62 String acraUri = GitBuildId.getAcraUri();
63 if (acraUri.equals(
"")) {
64 Log.i(
"ReplApplication",
"ACRA Not Active");
66 Log.i(
"ReplApplication",
"ACRA Active, URI = " + acraUri);
67 ACRAConfiguration config = ACRA.getNewDefaultConfig(
this);
68 config.setFormUri(acraUri);
69 config.setDisableSSLCertValidation(
true);
70 ACRA.setConfig(config);
76 public static void reportError(Throwable ex, String reportId) {
77 ACRA.getErrorReporter().putCustomData(
"reportid", reportId);
82 if (thisInstance !=
null && thisInstance.active)
83 ACRA.getErrorReporter().handleException(ex);
87 if (thisInstance !=
null && thisInstance.active) {