Skip to content

Commit 5295a5a

Browse files
author
David Motsonashvili
committed
refactor out extra task
1 parent c817207 commit 5295a5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/src/main/java/com/google/firebase/gradle/plugins/CopyGoogleServicesPlugin.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class CopyGoogleServicesPlugin : Plugin<Project> {
4343
project.allprojects {
4444
// fixes dependencies with gradle tasks that do not properly dependOn `preBuild`
4545
tasks.configureEach {
46-
if (name !== "copyRootGoogleServices" && name !== "copyDummyGoogleServices") {
46+
if (name !== "copyRootGoogleServices") {
4747
dependsOn(copyRootGoogleServices)
4848
}
4949
}
@@ -100,6 +100,7 @@ abstract class CopyGoogleServicesPlugin : Plugin<Project> {
100100
if (File(project.projectDir, "google-services.json").exists() || File(path).exists()) {
101101
return path
102102
}
103+
project.logger.warn("Google services file not found, using fallback")
103104
return "${project.rootDir}/plugins/resources/dummy-google-services.json"
104105
}
105106
}

0 commit comments

Comments
 (0)