cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-13145) Create playservices version preference in config.xml
Date Fri, 06 Oct 2017 22:31:04 GMT


ASF subversion and git services commented on CB-13145:

Commit a4216009e7bc7c18bccaff1bf8091d7c72b72aea in cordova-common's branch refs/heads/CB-13145
from [~auso]
[;h=a421600 ]

Merge branch 'CB-13145' of into CB-13145-steve

> Create playservices version preference in config.xml
> ----------------------------------------------------
>                 Key: CB-13145
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-lib
>            Reporter: Steve Gill
>              Labels: backlog, tools-next
>             Fix For: cordova@7.2.0
> We are seeing an issue in the community of two plugins using different versions of google
play services. This causes gradle to error out. We are running into this with the phonegap-push-plugin.
> Potential solution:
> We could create an Android only preference called PlayServicesVersion in config.xml which
would control the version of Play Services used for the entire project.
> In config.xml:
> {code}
> <preference name="PlayServicesVersion" value="11.0.1"/>
> {code}
> Then if the push plugin wanted to include the FCM libraries in it's plugin.xml it would
> <framework src="$PlayServicesVersion"/>
> and the cordova-plugin-google-analytics wanted to include Play Services in it's plugin.xml
it would do:
> {code}
> <framework src="$PlayServicesVersion"
> {code}
> they would both use the same version of Play Services. This gets around the problem of
plugins using + in the framework tag and having two plugins pin different versions of Play
> The + wildcard fails to compile with the following error:
> {code}
> > Failed to apply plugin [id '']
>    > For input string: "+"
> {code}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message