Skip to content

Commit

Permalink
skip google-services process when it does not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrox-hs committed Oct 3, 2023
1 parent 9e587bb commit a015ec7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ flutter {
source '../..'
}

project.gradle.taskGraph.whenReady { graph ->
project.tasks.findAll().forEach { task ->
if (task.name.contains("processDebugGoogleServices")) {
def googleServicesJsonFiles = fileTree(dir: ".", include: "**/google-services.json")
if (googleServicesJsonFiles.isEmpty()) {
task.enabled = false
}
}
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

Expand Down

0 comments on commit a015ec7

Please sign in to comment.