-
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.
* Feature/capture * Test/add tests * update deps * change new tyres color * add system time view
- Loading branch information
Showing
26 changed files
with
981 additions
and
145 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
21 changes: 4 additions & 17 deletions
21
app/src/main/java/ru/n1ks/f1dashboard/DashboardApplication.kt
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 |
---|---|---|
@@ -1,26 +1,13 @@ | ||
package ru.n1ks.f1dashboard | ||
|
||
import android.app.Application | ||
import android.content.Context | ||
import org.acra.config.dialog | ||
import org.acra.data.StringFormat | ||
import org.acra.ktx.initAcra | ||
import ru.n1ks.f1dashboard.reporting.CrashReportActivity | ||
import ru.n1ks.f1dashboard.reporting.initReporting | ||
|
||
class DashboardApplication : Application() { | ||
|
||
override fun attachBaseContext(base: Context?) { | ||
super.attachBaseContext(base) | ||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
initAcra { | ||
//core configuration: | ||
buildConfigClass = BuildConfig::class.java | ||
reportFormat = StringFormat.JSON | ||
|
||
dialog { | ||
//allows other customization | ||
reportDialogClass = CrashReportActivity::class.java | ||
} | ||
} | ||
initReporting(this) | ||
} | ||
} |
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
Oops, something went wrong.