Only enable crashlytics if google-json file has been found
This commit is contained in:
parent
392a404157
commit
081c5b4f79
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue