Reputation: 9373
I'm using Phonegap in Eclipse (with the ADT plugin).
I have a big framework that I use for my normal HTML projects. This framework is full of js, css and graphics files.
For convenience I included the whole framework inside my Phonegap project, since I might need something from the framework later.
But when I build the apk, all files from the framework are included in the apk, which makes it bigger than 10MB. Most of the files are never used in the project, so I need to find a simple way to exclude those files/folders from the build.
Any suggestions?
Upvotes: 3
Views: 3494
Reputation: 2584
This excludes the whole ./www/app
directory from the .apk build:
<property name="aapt.ignore.assets" value="<dir>app:" />
Upvotes: 0
Reputation: 395
I've documented how to do this using build.xml on Coderwall:
https://coderwall.com/p/ogxpdg
I hope this helps somebody out!
Upvotes: 3
Reputation: 7655
use the ant build process, remove the files before apk is made in the pre-compile method of the ant build process.
Upvotes: 0