From e30b854e95805f3a113e6f11d34f57eb82c79528 Mon Sep 17 00:00:00 2001 From: "Pavel.Golub" Date: Thu, 14 May 2020 15:34:28 +0300 Subject: [PATCH] Enable Crashlytics for Release only --- README.md | 2 +- diveboard/build.gradle | 4 ++++ diveboard/src/main/AndroidManifest.xml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9492098..86de433 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Follow instructions at https://firebase.google.com/docs/android/setup and copy f You can be added into Blackbox admins list by any user listed in *.blackbox\blackbox-admins.txt*. See full instructions [here](https://github.com/StackExchange/blackbox#how-to-indoctrinate-a-new-user-into-the-system). ## Create release package -1. Decrypt all the encrypted files by running `./blackbox_decrypt_all_files` +1. Decrypt all the encrypted files by running `blackbox_decrypt_all_files` 2. Execute `gradle assembleBetaRelease` 3. (optionally) Execute `blackbox_shred_all_files` to remove all the decrypted files diff --git a/diveboard/build.gradle b/diveboard/build.gradle index d8564e8..b66e39d 100644 --- a/diveboard/build.gradle +++ b/diveboard/build.gradle @@ -40,8 +40,12 @@ android { signingConfig signingConfigs.release minifyEnabled true shrinkResources true + ext.enableCrashlytics = true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } + debug { + ext.enableCrashlytics = false + } } packagingOptions { diff --git a/diveboard/src/main/AndroidManifest.xml b/diveboard/src/main/AndroidManifest.xml index 7259acb..7fd4f28 100644 --- a/diveboard/src/main/AndroidManifest.xml +++ b/diveboard/src/main/AndroidManifest.xml @@ -2,7 +2,7 @@