-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add crash reports, UI fixes, crash on startup, bet slip updates, b 245
- Loading branch information
MIPPL
committed
Oct 30, 2019
1 parent
b4353d2
commit 804d0ae
Showing
9 changed files
with
73 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
import android.view.Display; | ||
import android.view.WindowManager; | ||
|
||
import com.google.firebase.FirebaseApp; | ||
import com.wagerrwallet.presenter.activities.util.BRActivity; | ||
import com.wagerrwallet.tools.listeners.SyncReceiver; | ||
import com.wagerrwallet.tools.manager.InternetManager; | ||
|
@@ -31,6 +32,13 @@ | |
|
||
import static com.platform.APIClient.BREAD_POINT; | ||
|
||
import org.acra.*; | ||
import org.acra.config.CoreConfigurationBuilder; | ||
import org.acra.config.HttpSenderConfigurationBuilder; | ||
import org.acra.config.ToastConfigurationBuilder; | ||
import org.acra.data.StringFormat; | ||
import org.acra.sender.HttpSender; | ||
|
||
/** | ||
* BreadWallet | ||
* <p/> | ||
|
@@ -77,15 +85,50 @@ public class WagerrApp extends Application { | |
|
||
private static Activity currentActivity; | ||
|
||
/* @AcraCore(buildConfigClass = BuildConfig.class, | ||
reportFormat = StringFormat.JSON) | ||
@AcraEmailSender(uri = "https://yourdomain.com/acra/report", | ||
httpMethod = HttpSender.Method.POST, | ||
basicAuthLogin = "*****", | ||
basicAuthPassword = "*****") | ||
*/ public class MyApplication extends Application { | ||
@Override | ||
protected void attachBaseContext(Context base) { | ||
super.attachBaseContext(base); | ||
|
||
ACRAInit(); | ||
} | ||
} | ||
|
||
public void ACRAInit() { | ||
CoreConfigurationBuilder builder = new CoreConfigurationBuilder(this) | ||
.setBuildConfigClass(BuildConfig.class) | ||
.setReportFormat(StringFormat.JSON); | ||
/*builder.getPluginConfigurationBuilder(MailSenderConfigurationBuilder.class) | ||
.setMailTo("[email protected]") | ||
.setReportAsFile(true) | ||
.setSubject("Wagerr Crash Report") | ||
.setEnabled(true);*/ | ||
builder.getPluginConfigurationBuilder(HttpSenderConfigurationBuilder.class) | ||
.setHttpMethod(HttpSender.Method.POST) | ||
.setUri("http://167.86.74.98/acra.php") | ||
.setEnabled(true); | ||
builder.getPluginConfigurationBuilder(ToastConfigurationBuilder.class).setText("Sending crash report"); | ||
// The following line triggers the initialization of ACRA | ||
ACRA.init(this,builder); | ||
} | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
if (Utils.isEmulatorOrDebug(this)) { | ||
FirebaseApp.initializeApp(this); | ||
// BRKeyStore.putFailCount(0, this); | ||
HOST = "stage2.breadwallet.com"; | ||
FirebaseCrash.setCrashCollectionEnabled(false); | ||
// FirebaseCrash.report(new RuntimeException("test with new json file")); | ||
} | ||
ACRAInit(); | ||
mContext = this; | ||
|
||
if (!Utils.isEmulatorOrDebug(this) && IS_ALPHA) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters