Phonegap: can certain files / folders be excluded from apk?
I am using Phonegap in Eclipse (with ADT plugin).
I have a large framework that I use for my regular HTML projects. This framework is full of js, css and graphics files.
For convenience, I've included the entire framework inside my Phonegap project, as I might need something from the framework later.
But when I create an apk, all files from the framework are included in the apk, making it over 10MB. Most of the files are never used in the project, so I need to find an easy way to exclude these files / folders from the build.
Any suggestions?
I have documented how to do this using build.xml on Coderwall:
https://coderwall.com/p/ogxpdg
I hope this helps someone!
- Woof
use ant build process, delete files before apk is built in pre-compile method of ant build process.
This one excludes the whole directory ./www/app
from the .apk build :
<property name="aapt.ignore.assets" value="<dir>app:" />