I have a script to filter src, res, libs etc. (based on the device type) from Android project folder to another specific folders. For example type 1 and type 2 device will have following structure after running the script.
Device_Type_1
\src
\res
\libs
\assets
\AndroidManifest.xml
Device_Type_2
\src
\res
\libs
\assets
\AndroidManifest.xml
I have to write a script to make build using the above folder names. I tried out ant release command but it’s throwing Java compilation error.
I like to know is there any command/script where I can pass path of src, res, lib, asset and manifest file as parameters and can build project.
Not sure if I understood you correctly, but here’s my script I use to build different apks for tablets and phones:
It just extends standard android build.xml and slightly modifies it. When build starts, I create a temp dir and copy all the resources I need for the target, then build from that temp dir.
Right now it just separates drawable folders, but you can tweak it easily to accomplish your goals