chore: Only load google services if needed

Originally done in 051ec8f913e6532349f0912cac3ca84507c542bb then
accidentally (?) reverted in 8a542bf5c2f5dd2cd275111074f29b71b2b11dd7
This commit is contained in:
Marcus Hoffmann 2020-11-21 17:36:04 +01:00
parent 2a0a422847
commit bdc52cf8d6
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