Once, I edited AndroidManifest.xml of my Ionic/Android project and everything worked as expected.
An example of modification could be:
android:theme="@android:style/Theme.Holo.Light.NoActionBar to change Android Theme.
One day, I deleted my local projet and then re-downloaded it from my git repo.
At this time, I realized the .gitignore contained
platforms/ dir which contained AndroidManifest.xml file !!! Sh***!!! I lost my work!!!
What is the right solution to deal with this problem?
- Should I include AndroidManifest.xml in my git repo?
- Is there a way to set higher level parameters in root config.xml sothat AndroidManifest.xml is updated when building? It seems possible because I saw something like:
<preference name="orientation" value="portrait" />This way, I will never need to touch to AndroidManifest.xml and no need to upload it on git.
PS: I saw nothing on documentation about how to use config.xml. Did I miss something?