ljz2009y / android-unused-resources

Automatically exported from code.google.com/p/android-unused-resources
0 stars 0 forks source link

Fails under Cordova because it has path ant-gen/R.java.d rather than the expected gen/R.java #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. build Cordova project with android platform (I did in win7).
2. cd to platorms/android
3. try to run the AndroidUnusedResources1.6.2.jar

What is the expected output? What do you see instead?

I expected a list of removed resources.
I instead saw: -
Running in: c:\dev\projects\emgoddess\platforms\android
You must first build your project to generate R.java

What version of the product are you using? On what operating system?
AndroidUnusedResources1.6.2.jar in Windows7 with Cordova 3.5.0-0.2.6

Please provide any additional information below.

I looked at the AndroidUnusedResources1.6.2 source and I can see that its 
looking for a dir named 'gen', while in my Cordova build the gen dir is named 
'ant-gen'.
I would also note that there may be additional Cordova related files on the 
path for which AndroidUnusedResources may need to avoid removal.

I also googled for an equivalent solution (to AndroidUnusedResources) relating 
specifically to Cordova but could not find one.

There are a stack of default splash and icon resources related to Cordova on 
the build path, and once a developer has added their own icons/etc, he/she 
usually prefers to remove (manually at this stage) said Cordova resources to 
avoid the embarrassment of non app icons or splash screens showing up on users 
devices.  

If you would like to see the files and folders in my build path, or otherwise 
need any additional info please dont hesitate to email me.

Long live Apache.

Thank you and kind regards,
Eugene.

Original issue reported on code.google.com by eker...@ekerner.com on 20 Sep 2014 at 4:04