package org.fathens.cordova.acra;

import org.acra.ACRA;
import org.acra.ACRAConfiguration;
import org.acra.ACRAConfigurationException;
import org.acra.ReportingInteractionMode;
import org.acra.annotation.ReportsCrashes;
import org.acra.sender.EmailIntentSender;

import android.app.Application;
import android.util.Log;

@ReportsCrashes(formKey = "")
public class AcraApplication extends Application {
    static final String TAG = "ACRA_Application";

    @Override
    public void onCreate() {
	super.onCreate();

	// Initialization of ACRA
	final ReportingInteractionMode mode = ReportingInteractionMode.TOAST;
	final int toastText = getResources().getIdentifier("acra_toast_text", "string", getPackageName());
	final private String url = getResources().getString(
		getResources().getIdentifier("acra_url", "string", getPackageName()));
	final private String username = getResources().getString(
			getResources().getIdentifier("acra_username", "string", getPackageName()));
	final private String password = getResources().getString(
			getResources().getIdentifier("acra_password", "string", getPackageName()));
	Log.d(TAG, String.format("Configuration Setup: MODE=%s, TOAST_TEXT=%x, PUT_URI='%s'", mode, toastText, url));
	try {
	    final ACRAConfiguration config = ACRA.getNewDefaultConfig(this);
	    config.setMode(mode);
	    config.setResToastText(toastText);
	    config.setHttpMethod(org.acra.sender.HttpSender.Method.PUT);
	    config.setFormUri(url);
	    config.setFormUriBasicAuthLogin(username);
	    config.setFormUriBasicAuthPassword(password);
	    ACRA.setConfig(config);
	    ACRA.init(this);
	    ACRA.getErrorReporter().setReportSender(new EmailIntentSender(getApplicationContext()));
	} catch (ACRAConfigurationException ex) {
	    throw new RuntimeException(ex);
	}
    }
}

@@ -711,32 +711,24 @@
 ());%0A%09final 
-private 
 String url =
@@ -753,19 +753,16 @@
 tString(
-%0A%09%09
 getResou
@@ -827,32 +827,24 @@
 )));%0A%09final 
-private 
 String usern
@@ -866,36 +866,32 @@
 ces().getString(
-%0A%09%09%09
 getResources().g
@@ -961,16 +961,8 @@
 nal 
-private 
 Stri
@@ -1004,12 +1004,8 @@
 ing(
-%0A%09%09%09
 getR

Remove wrong 'private'