From d0218727e983af2a5391b07b28c970d24b0fa98e Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Wed, 30 Jan 2019 22:38:01 -0500 Subject: [PATCH] Enabling crashlytics reports on release builds only --- app/build.gradle | 4 ++++ app/src/main/AndroidManifest.xml | 3 +++ .../bitsybitshareswallet/activities/ConnectedActivity.kt | 7 +++++++ 3 files changed, 14 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 113e15e..68e3d7f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,12 +29,16 @@ android { minifyEnabled false shrinkResources false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + // enable crashlytics + buildConfigField "boolean", "USE_CRASHLYTICS", "true" } debug { // TODO enabling minify breaks the debugger breakpoints, find a way to fix it and enable minify again minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' resValue("string", "PORT_NUMBER", "8082") + // disable crashlytics + buildConfigField "boolean", "USE_CRASHLYTICS", "false" } } android.packagingOptions { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d365e5e..f1157f1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -35,6 +35,9 @@ +