Only enable crashlytics if google-json file has been found

This commit is contained in:
Sylvain Berfini 2021-03-12 10:31:26 +01:00
parent 392a404157
commit 081c5b4f79

View file

@ -17,9 +17,10 @@ static def firebaseEnabled() {
} }
def crashlyticsEnabled() { def crashlyticsEnabled() {
File googleFile = new File('app/google-services.json')
File linphoneLibrary = new File(LinphoneSdkBuildDir + '/libs/') File linphoneLibrary = new File(LinphoneSdkBuildDir + '/libs/')
File linphoneLibraryDebug = new File(LinphoneSdkBuildDir + '/libs-debug/') File linphoneLibraryDebug = new File(LinphoneSdkBuildDir + '/libs-debug/')
return linphoneLibrary.exists() && linphoneLibraryDebug.exists() return googleFile.exists() && linphoneLibrary.exists() && linphoneLibraryDebug.exists()
} }
if (crashlyticsEnabled()) { if (crashlyticsEnabled()) {