Fixed potential issue with google-services.json path

This commit is contained in:
Sylvain Berfini 2021-08-28 11:40:54 +02:00
parent d0c20db2c6
commit 185aaf20e3

View file

@ -11,13 +11,13 @@ static def getPackageName() {
return "org.linphone" return "org.linphone"
} }
static def firebaseEnabled() { def firebaseEnabled() {
File googleFile = new File('app/google-services.json') File googleFile = new File(projectDir.absolutePath +'/google-services.json')
return googleFile.exists() return googleFile.exists()
} }
def crashlyticsEnabled() { 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 linphoneLibrary = new File(LinphoneSdkBuildDir + '/libs/')
File linphoneLibraryDebug = new File(LinphoneSdkBuildDir + '/libs-debug/') File linphoneLibraryDebug = new File(LinphoneSdkBuildDir + '/libs-debug/')
return googleFile.exists() && linphoneLibrary.exists() && linphoneLibraryDebug.exists() return googleFile.exists() && linphoneLibrary.exists() && linphoneLibraryDebug.exists()