Detect common file paths for resources directory in android

31 views Asked by At

I have 2 packages, package1 and package2 in android. Both the packages have resources directory containing a file with the same name and path i.e both the packages contain /main/res/anim/slide_in_right.xml. I want to have some kind of check to detect such files and throw a warning/error at compilation time.

Similar issue : https://issuetracker.google.com/issues/36975476

I tried searching for this problem over android related pages, but only came across 'resourcePrefix' solution. This forces the user to add a prefix to their resource files so that we don't face this issue of clash in filenames. But this requires manually going and adding prefix at all places. Styleable attributes are also being matched and erroring out. We do not want our styleable attributes, nor the styleable itself to be forced to use these prefixes.

0

There are 0 answers