From 051ec8f913e6532349f0912cac3ca84507c542bb Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 27 Oct 2020 13:14:10 +0000 Subject: [PATCH] chore: Only load google services if needed --- README.md | 5 ----- android/app/build.gradle | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 092146d..a737f10 100644 --- a/README.md +++ b/README.md @@ -57,11 +57,6 @@ cd fluffychat-flutter sudo apt install ninja-build ``` -* Outcomment the Google Services plugin at the end of the file `android/app/build.gradle`: -``` -// apply plugin: "com.google.gms.google-services" -``` - * Build with: `flutter build apk` ### iOS / iPadOS diff --git a/android/app/build.gradle b/android/app/build.gradle index 36caa49..0ff405a 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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() || System.getenv('CI')){ + apply plugin: 'com.google.gms.google-services' +} \ No newline at end of file