marco-alvarez / android-unused-resources

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

Patch for /trunk/src/ca/skennedy/androidunusedresources/ResourceScanner.java #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
the boolean "found" value was the value of the last directory scanned in the 
gen directory.
There could be several directories in gen because : R file is in the 
Application package name hierarchy, generated interfaces are in the hierarchy 
of aidl file package (could be different)

Anyway, my patch fixes that.

Good job for this great tool

Original issue reported on code.google.com by yom.mabr...@gmail.com on 21 Jul 2011 at 9:51

Attachments:

GoogleCodeExporter commented 8 years ago
I've applied the patch in r19

There's actually a bigger issue related to finding R.java, in that with library 
projects, you can have multiple R.java files, but you're really only interested 
in YOUR project's for finding unused resources.  Under other circumstances 
(com.example.app.R.drawable.smiley and com.example.lib.R.drawable.smiley), I 
think there are going to be some reported used resources where they really 
aren't.

All this will have to be fixed at some point.  I'll make add this as Issue 10.

Original comment by skenned...@gmail.com on 5 Aug 2011 at 5:02