MC-Cordova-Plugin icon indicating copy to clipboard operation
MC-Cordova-Plugin copied to clipboard

[BUG FIX] [ANDROID] Add check google-services plugin does not exist

Open lucaboy opened this issue 4 years ago • 5 comments

lucaboy avatar Aug 24 '20 22:08 lucaboy

When would this apply? The included marketingcloudsdk.gradle adds the dependency for you and then the plugin is applied.

billmote avatar Aug 25 '20 13:08 billmote

If there is another library that add the same plugin before your gradle plugin is applied, you'll get the following error: "Cannot add extension with name 'googleServices', as there is an extension already registered with that name" and the build will fail.

lucaboy avatar Aug 25 '20 16:08 lucaboy

This may be useful if this plugin is added to an Ionic Capacitor project. In this case the Capacitor project will apply the plugin in the app module.

jefflnorton avatar Nov 12 '20 15:11 jefflnorton

In cordova-android 9 I made:

<preference name="GradlePluginGoogleServicesEnabled" value="false" />

cabelotaina avatar Jan 06 '21 23:01 cabelotaina

Any update on whether this PR can be included in a release?

dtarnawsky avatar Jun 29 '21 18:06 dtarnawsky