From 081c5b4f79c8ac63b2c5006b5f9722fbf9f06d05 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 12 Mar 2021 10:31:26 +0100 Subject: [PATCH] Only enable crashlytics if google-json file has been found --- app/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index c5a3180cb..0412d984d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,9 +17,10 @@ static def firebaseEnabled() { } def crashlyticsEnabled() { + File googleFile = new File('app/google-services.json') File linphoneLibrary = new File(LinphoneSdkBuildDir + '/libs/') File linphoneLibraryDebug = new File(LinphoneSdkBuildDir + '/libs-debug/') - return linphoneLibrary.exists() && linphoneLibraryDebug.exists() + return googleFile.exists() && linphoneLibrary.exists() && linphoneLibraryDebug.exists() } if (crashlyticsEnabled()) {