From 251057b293197ad3715bbfef541991d824519b13 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 25 Feb 2021 09:53:54 +0100 Subject: [PATCH] Only enable crashlytics with locally built SDK --- app/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5bf31e068..92e7c0c84 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -16,8 +16,10 @@ static def firebaseEnabled() { return googleFile.exists() } -static def crashlyticsEnabled() { - return true +def crashlyticsEnabled() { + File linphoneLibrary = new File(LinphoneSdkBuildDir + '/libs/') + File linphoneLibraryDebug = new File(LinphoneSdkBuildDir + '/libs-debug/') + return linphoneLibrary.exists() && linphoneLibraryDebug.exists() } if (crashlyticsEnabled()) {