Broadcasting from Android crashes #1696
This commit is contained in:
parent
2c5a521b85
commit
b98266feca
|
@ -51,6 +51,12 @@ dependencies {
|
|||
implementation project(':models')
|
||||
implementation libs.annotations
|
||||
|
||||
def acraVersion = '5.6.1'
|
||||
implementation "ch.acra:acra-http:$acraVersion"
|
||||
implementation "ch.acra:acra-mail:$acraVersion"
|
||||
implementation "ch.acra:acra-dialog:$acraVersion"
|
||||
implementation "ch.acra:acra-toast:$acraVersion"
|
||||
|
||||
implementation files('lib/dfu_java.jar')
|
||||
implementation 'com.github.mik3y:usb-serial-for-android:v2.2.3'
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
package="com.rusefi.app">
|
||||
|
||||
<application android:label="@string/app_name"
|
||||
android:name="com.rusefi.app.RusefiApplication"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
package com.rusefi.app;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
import org.acra.ACRA;
|
||||
import org.acra.config.CoreConfigurationBuilder;
|
||||
import org.acra.config.MailSenderConfigurationBuilder;
|
||||
import org.acra.config.ToastConfigurationBuilder;
|
||||
|
||||
public class RusefiApplication extends Application {
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
CoreConfigurationBuilder builder = new CoreConfigurationBuilder(this);
|
||||
builder.getPluginConfigurationBuilder(MailSenderConfigurationBuilder.class)
|
||||
.setMailTo("rusefillc@gmail.com")
|
||||
.setSubject("Android Crash")
|
||||
.setEnabled(true);
|
||||
|
||||
builder.getPluginConfigurationBuilder(ToastConfigurationBuilder.class);
|
||||
ACRA.init(this, builder);
|
||||
}
|
||||
}
|
|
@ -64,7 +64,7 @@ public class rusEFI extends Activity {
|
|||
//
|
||||
// protected static final int DFU_DETACH_TIMEOUT = 1000;
|
||||
|
||||
private static final String VERSION = "rusEFI app v0.0000004\n";
|
||||
private static final String VERSION = "rusEFI app v0.0000005\n";
|
||||
|
||||
/* UI elements */
|
||||
private TextView mStatusView;
|
||||
|
|
Loading…
Reference in New Issue