Fixed firebase always disabled

This commit is contained in:
Sylvain Berfini 2018-11-24 09:46:31 +01:00
parent 92b33ef71c
commit 342ffe4981

View file

@ -5,7 +5,7 @@ def getPackageName() {
}
def firebaseEnabled() {
File googleFile = new File('google-services.json')
File googleFile = new File('app/google-services.json')
return googleFile.exists()
}
@ -15,10 +15,6 @@ def isLocalAarAvailable() {
return debugAar.exists() || releaseAar.exists()
}
if (firebaseEnabled()) {
apply plugin: 'com.google.gms.google-services'
}
///// Exclude Files /////
def excludeFiles = []
@ -120,4 +116,8 @@ dependencies {
releaseImplementation "org.linphone:liblinphone-sdk:${android.defaultConfig.versionName}"
debugImplementation "org.linphone:liblinphone-sdk:${android.defaultConfig.versionName}-DEBUG"
}
}
if (firebaseEnabled()) {
apply plugin: 'com.google.gms.google-services'
}