@@ -26,8 +26,8 @@ import org.gradle.kotlin.dsl.getByType
26
26
import org.gradle.kotlin.dsl.register
27
27
28
28
/* *
29
- * Copies the root google-services.json into the project directory during build time.
30
- * If the file doesn't exist, a dummy file is created and copied instead
29
+ * Copies the root google-services.json into the project directory during build time. If the file
30
+ * doesn't exist, a dummy file is created and copied instead
31
31
*
32
32
* If a path is provided via `FIREBASE_GOOGLE_SERVICES_PATH`, that will be used instead. The file
33
33
* will also be renamed to `google-services.json`, so provided files do *not* need to be properly
@@ -48,7 +48,7 @@ abstract class CopyGoogleServicesPlugin : Plugin<Project> {
48
48
project.allprojects {
49
49
// fixes dependencies with gradle tasks that do not properly dependOn `preBuild`
50
50
tasks.configureEach {
51
- if (name != = " copyRootGoogleServices" && name!= = " createRootGoogleServices" ) {
51
+ if (name != = " copyRootGoogleServices" && name != = " createRootGoogleServices" ) {
52
52
dependsOn(copyRootGoogleServices)
53
53
}
54
54
}
@@ -66,12 +66,12 @@ abstract class CopyGoogleServicesPlugin : Plugin<Project> {
66
66
return gradle.startParameter.taskNames.any { testTasks.any(it::contains) }
67
67
}
68
68
69
- private fun registerDummyGoogleServicesTask (
70
- project : Project ,
71
- path : String
72
- ) = project.tasks.register( " createRootGoogleServices " ) {
73
- println ( " Google services file not found, using fallback " )
74
- File (path).writeText( """
69
+ private fun registerDummyGoogleServicesTask (project : Project , path : String ) =
70
+ project.tasks.register( " createRootGoogleServices " ) {
71
+ println ( " Google services file not found, using fallback " )
72
+ File (path)
73
+ .writeText(
74
+ """
75
75
{
76
76
"project_info": {
77
77
"project_number": "1234567",
@@ -96,8 +96,10 @@ abstract class CopyGoogleServicesPlugin : Plugin<Project> {
96
96
],
97
97
"configuration_version": "1"
98
98
}
99
- """ .trimIndent())
100
- }
99
+ """
100
+ .trimIndent()
101
+ )
102
+ }
101
103
102
104
private fun registerCopyRootGoogleServicesTask (project : Project ) =
103
105
project.tasks.register<Copy >(" copyRootGoogleServices" ) {
0 commit comments