# Maintaining AndroidManifest.xml in Git

**URL:** <https://forum.ionicframework.com/t/maintaining-androidmanifest-xml-in-git/26308>\
**Category:** ionic-v1\
**Created:** [June 14, 2015, 1:34am UTC](https://forum.ionicframework.com/t/maintaining-androidmanifest-xml-in-git/26308 "2015-06-14T01:34:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![budda](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/budda/32/87601_2.png) [@budda](https://forum.ionicframework.com/u/budda)\
**Post date:** [June 14, 2015, 1:34am UTC](https://forum.ionicframework.com/t/maintaining-androidmanifest-xml-in-git/26308/1 "2015-06-14T01:34:06Z")

</div>

As everything in platform/ directory is gitignored and we’re told to update platforms/android/AndroidManifest.xml for some things such as versioning for Google Play store ([http://ionicframework.com/docs/guide/publishing.html](http://ionicframework.com/docs/guide/publishing.html)) i wondered what the best practice is for maintaining settings between multiple developers and machines on a project?

I tried to bodge inserting stuff in to the manifest using a hook, but my string replacement goes bad as the Android Manifest is never rebuilt from scratch each time so my hook is adding the same thing in over and over again. doh!

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [June 14, 2015, 10:26pm UTC](https://forum.ionicframework.com/t/maintaining-androidmanifest-xml-in-git/26308/2 "2015-06-14T22:26:09Z")

</div>

That guide is wrong on that point. You don’t need to specify an Android version code because Cordova will automatically generate one for you based on the `version` set in `config.xml`. You can also explicitly specify an Android version code in `config.xml` if you prefer. Either way, no need to edit `AndroidManifest.xml` directly.

See [https://cordova.apache.org/docs/en/4.0.0/config\_ref\_index.md.html#additional-versioning](https://cordova.apache.org/docs/en/4.0.0/config_ref_index.md.html#additional-versioning)

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [June 14, 2015, 10:33pm UTC](https://forum.ionicframework.com/t/maintaining-androidmanifest-xml-in-git/26308/3 "2015-06-14T22:33:39Z")

</div>

There’s already an open issue for this inaccuracy in the guide: [https://github.com/driftyco/ionic-site/issues/264](https://github.com/driftyco/ionic-site/issues/264)
