I’ve got a single Android project which I need to build many .apk’s from. The .apk’s differ from each other in only a few ways:
- there are a few values in the Android manifest file that differ from each other
- some of the .apk’s might exclude some files in the /res folder
- different package name
What is the best way to build all these different .apk’s automatically?
Thanks!
Use Android Maven plugin. It supports android library projects.
Here is an example: https://github.com/jayway/maven-android-plugin-samples/tree/master/libraryprojects
(You will need to create several ‘libraryprojects-mainapp’ modules)