From 185aaf20e3fbd0e40cbc6deca970fe1584c3ac7e Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Sat, 28 Aug 2021 11:40:54 +0200 Subject: [PATCH] Fixed potential issue with google-services.json path --- app/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c8e1c0d7b..a6bba51a8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,13 +11,13 @@ static def getPackageName() { return "org.linphone" } -static def firebaseEnabled() { - File googleFile = new File('app/google-services.json') +def firebaseEnabled() { + File googleFile = new File(projectDir.absolutePath +'/google-services.json') return googleFile.exists() } def crashlyticsEnabled() { - File googleFile = new File('app/google-services.json') + File googleFile = new File(projectDir.absolutePath +'/google-services.json') File linphoneLibrary = new File(LinphoneSdkBuildDir + '/libs/') File linphoneLibraryDebug = new File(LinphoneSdkBuildDir + '/libs-debug/') return googleFile.exists() && linphoneLibrary.exists() && linphoneLibraryDebug.exists()