MobileChromeApps / google-play-services

A Cordova plugin for Android that adds Google Play Services
51 stars 96 forks source link

AndroidManifest additions for google_play_services_version? #2

Closed john-gu closed 10 years ago

john-gu commented 10 years ago

Hi,

In order to use the Google Play Services SDK, I need the following addition to AndroidManifest.xml per http://developer.android.com/google/play-services/setup.html:

<meta-data android:name="com.google.android.gms.version"
           android:value="@integer/google_play_services_version" />

This would involve copying /res/values/version.xml from the Play Services lib to my project's same folder to access the google_play_services_version value. Since I'm dependent on the version of the .jar from this repo, have you considered making these available in the repo as well so the versions match?

ex: adding to plugin.xml something like

        <config-file target="AndroidManifest.xml" parent="/manifest/application">
            <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
        </config-file>

        <source-file src="version.xml" target-dir="res/values" />

Thanks

agrieve commented 10 years ago

Thanks! Big oversight on my part, and your suggestion worked perfectly.

pruthvi247 commented 6 years ago

Can any one give me the steps like where to find plugin.xml,as am new to android development,am trying to learn google maps