chore: Only load google services if needed

Originally done in 051ec8f913 then
accidentally (?) reverted in 8a542bf5c2
This commit is contained in:
Marcus Hoffmann 2020-11-21 17:36:04 +01:00
parent 94231dab30
commit bae779a868
2 changed files with 4 additions and 3 deletions

View File

@ -87,4 +87,6 @@ dependencies {
implementation "net.zetetic:android-database-sqlcipher:4.4.0" // needed for moor_ffi w/ sqlcipher
}
apply plugin: 'com.google.gms.google-services'
if(file("google-services.json").exists()){
apply plugin: 'com.google.gms.google-services'
}

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash
flutter channel stable
flutter upgrade
truncate -s $(head -n -2 android/app/build.gradle | wc -c) android/app/build.gradle
flutter build apk --debug -v
flutter build apk --debug -v