crash logging works

This commit is contained in:
geeksville 2020-01-22 13:40:57 -08:00
parent 3a0fa43d82
commit ee54f9fa36
4 changed files with 13 additions and 2 deletions

View file

@ -3,6 +3,9 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
// Apply the Crashlytics Gradle plugin
apply plugin: 'com.google.firebase.crashlytics'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
@ -60,7 +63,8 @@ dependencies {
androidTestImplementation("androidx.ui:ui-platform:$compose_version")
androidTestImplementation("androidx.ui:ui-test:$compose_version")
// add the Firebase SDK for Google Analytics
// Add the Firebase SDK for Crashlytics.
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta01'
// add SDKs for any other desired Firebase products
// https://firebase.google.com/docs/android/setup#available-libraries

View file

@ -72,6 +72,7 @@ class MainActivity : AppCompatActivity() {
/* Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show() */
// throw NotImplementedError("I like crap")
if(bluetoothAdapter != null) {
SoftwareUpdateService.enqueueWork(this, SoftwareUpdateService.scanDevicesIntent)
}