Closed rlepinski closed 4 years ago
To add to this:
We should just move to using these at some point in the future and deprecate this plugin.
The way I suggested would just be a stopgap solution for the licensing issue and keeping GPS up to date until we see full gradle support.
Have a look at https://github.com/pkaul/googleplayservices-cordova-plugin. Altough not perfect yet (fails for newest Android SDK, requires installation of ANT, ...) it provides a first working sketch of the suggested solution.
The ant version that I linked to works as well. I am currently using in phonegap-ua-push. It uses the standard ant build system.
Instead of packaging and distributing Google Play Services, you could pull them from the android-sdk directory. This has the advantage of not needing to update the module whenever a new version of GPS is released and it prevents you from distributing GPS (against the license).
Here is an example: https://github.com/urbanairship/phonegap-ua-push/tree/master/src/android/google-play-services