-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add google services support #893
feat: add google services support #893
Conversation
917b463
to
ee832dc
Compare
ee832dc
to
3af5a08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 This looks good to me
@@ -356,3 +377,7 @@ for (def func : cdvPluginPostBuildExtras) { | |||
if (hasProperty('postBuildExtras')) { | |||
postBuildExtras() | |||
} | |||
|
|||
if (cdvHelpers.getConfigPreference('GoogleServicesEnable', 'false').toBoolean()) { | |||
apply plugin: 'com.google.gms.google-services' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my plugin when I do this, for some reason it needs to be the full path to the plugin, not just the string... I think that might have had something to do with being a subproject though
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
@erisu IMO current names a bit confusing. There are different google services that do not require this plugin (Maps, Ads etc.). So I suggest to change names to something like |
@erisu 👍 |
Motivation and Context
To finish off the change requests and close out PR #438
closes: #438
Description
What this PR does:
GoogleServicesEnabled
flag.GoogleServicesVersion
preference variable that allows users to override the default to use older or newer Google Services classpath. (Defaults to:4.2.0
)Testing
npm t
cordova platform add
cordova build android
preference
attributes.GoogleServicesEnabled
set totrue
GoogleServicesEnabled
set totrue
andGoogleServicesVersion
set to4.1.0
Checklist