I have an android application targetted at business customers in different countries.
I need to customize the application slightly for these customers. At the moment I created a customization.xml file (string resource under res/values) that will contain these custom fields.
Currently I havent found a way to make these customer dependent (also note that they need to be in xml files).
Can I branch only the customizations.xml and androidmanifest.xml files in git? These files are pretty small, so i can easily maintain them in different branches. However the other changes to the project should be easily pushed to different branches. How would i go about doing that?
Say we have a:
default : master branch
customer1 : customer1 branch with a different androidmanifest.xml and customizations.xml
customer2 : ….
Thanks for your insights. (I’d prefer git to solve this, but if you know another way, please elaborate).
you can only branch the full project. however, nobody prevents you from changing just those two files in the branch. you can then simply merge those branches to propagate the changes.