-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathacra.gradle.SAMPLE
26 lines (26 loc) · 1.23 KB
/
acra.gradle.SAMPLE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Sample ACRA configuration file
*
* In this example, sending ACRA reports is disabled in debug builds. If you want to send a report regardless
* of the build type, you can use the "buildTypes.all { type -> " syntax (see build.gradle).
*/
android {
buildTypes {
debug { // No need to constantly report exceptions during testing,
buildConfigField "String", "acraServer", '""'
buildConfigField "String", "acraLogin", '""'
buildConfigField "String", "acraPassword", '""'
buildConfigField "org.acra.ReportingInteractionMode", "acraMode",
"org.acra.ReportingInteractionMode.TOAST"
resValue "string", "crash_toast_text", "An error occured! Debug build -> won\\'t send report"
}
release {
buildConfigField "String", "acraServer", '"https://www.example.com/AcraSubmit"'
buildConfigField "String", "acraLogin", '"username"'
buildConfigField "String", "acraPassword", '"secret"'
buildConfigField "org.acra.ReportingInteractionMode", "acraMode",
"org.acra.ReportingInteractionMode.TOAST"
resValue "string", "crash_toast_text", "Transmitting error report"
}
}
}