diff --git a/README.md b/README.md index 55cd5baf1..d1ce45f0d 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,5 @@ for verbose logging adb shell setprop log.tag.FA VERBOSE adb shell setprop log.tag.FA-SVC VERBOSE +To see crash logs: +https://console.firebase.google.com/u/0/project/meshutil/crashlytics/app/android:com.geeksville.meshutil/issues?state=open&time=last-seven-days&type=crash diff --git a/app/build.gradle b/app/build.gradle index c6e3275d4..fa304c07d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 diff --git a/app/src/main/java/com/geeksville/meshutil/MainActivity.kt b/app/src/main/java/com/geeksville/meshutil/MainActivity.kt index 868217d3b..f10b56e11 100644 --- a/app/src/main/java/com/geeksville/meshutil/MainActivity.kt +++ b/app/src/main/java/com/geeksville/meshutil/MainActivity.kt @@ -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) } diff --git a/build.gradle b/build.gradle index 0dcbcd5de..4557f73bc 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,11 @@ buildscript { // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files - classpath 'com.google.gms:google-services:4.3.2' + // Add the Crashlytics Gradle plugin. + // Check that you have the Google Services Gradle plugin v4.3.2 or later + // (if not, add it). + classpath 'com.google.gms:google-services:4.3.3' + classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta01' } }