google / play-services-plugins

Plugins to help with using Google Play services SDK.
https://developers.google.com/android/guides/overview
Apache License 2.0
471 stars 138 forks source link

Make the process<Configuration>GoogleServices tasks config avoidant #192

Closed techsy730 closed 3 years ago

techsy730 commented 3 years ago

Make the processGoogleServices tasks config avoidant

See https://docs.gradle.org/current/userguide/task_configuration_avoidance.html

This does have the unfortunate side effect of the plugin not complaining about a missing google-services.json unless some process<Configuration>GoogleServices task gets run somehow. However, that may be better for local development where the answer of how to get a relevant google-services.json can be postponed until after it builds at all. (Though I understand AndroidStudio is capable of handling google-services.json, it would still be good for those forced to use CLI development only).

TESTED: Verified by a really simple local android project. Without this change, it complained about google-services.json immediately. With this change, it only complained about it if :processReleaseGoogleServices or :processDebugGoogleServices was run (directly or indirectly)

Fixes: #180