Merge branch 'google_services' into 'main'

chore: Only load google services if needed

See merge request ChristianPauly/fluffychat-flutter!285
This commit is contained in:
Christian Pauly 2020-11-21 19:07:09 +00:00
commit 3e849a585e
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 implementation "net.zetetic:android-database-sqlcipher:4.4.0" // needed for moor_ffi w/ sqlcipher
} }
if(file("google-services.json").exists()){
apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.gms.google-services'
}

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
flutter channel stable flutter channel stable
flutter upgrade 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