You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix CopyGoogleServicesPlugin for dataconnect (#7470)
This PR fixes a recent regression in `CopyGoogleServicesPlugin.kt`
introduced by #7454
where the `com.google.gms.google-services` Gradle plugin was not being
applied when a project already had its own `google-services.json` file.
The fix ensures the plugin is always applied during test runs, which is
required for firebase-dataconnect to compile its tests.
- Modified the early return logic to only skip the file copying task,
not the entire plugin application
- Changed the log level from warning to info when a Google Services file
already exists
- Ensured the Google Services plugin is applied regardless of whether
`google-services.json` exists
- Removed an unused import
The build error fixed by this PR looks like this:
```
firebase-dataconnect/src/androidTest/.../FirebaseAppIdTestUtil.kt:23:68 Unresolved reference 'string'.
```
0 commit comments