Various android modules like GooglePlayServices require application ids to be added in AndroidManifest.xml file. This manifest is inside the modules directory. When managing multiple android projects, we may have to come back and copy old project's modules into the source dir, change the ids and compile again to get the export templates. But I found a way to ease all this process.
Let's say we have two projects - A and B.
We will create the project directory like this
/projectA /godot_project_dir /templates /modules /projectB /godot_project_dir /templates /modules
So now each project has separate place for their own modules and export templates.
I have a script called generate.sh which can be run by passing the templates folder as an argument.
The script has to be in the Godot source directory and it will copy all modules into the godot source module directory. Then it compiles export templates for android and move it to the project's templates directory.
For the next project, we can repeat the same steps as above
This will remove all old modules copied for the projectA and compiles the templates with projectB modules.
The generate.sh script
Let me know what you think of this.
I already posted this on my blog. You can read it here if you want.