Android Lint: third_party libraries should be ignored |
|||
Issue description
To see these warnings, build:
//chrome/android:chrome_java
E.g.:
third_party/android_tools/sdk/extras/android/support/v7/mediarouter/res/layout/mr_chooser_list_item.xml:26 [Accessibility] Missing `contentDescription` attribute on image: ContentDescription [warning]
<ImageView android:id="@+id/mr_chooser_route_icon"
We just need to add "chromium_code=false" to the BUILD.gn file.
,
Jul 1 2016
Rest of the fix is here: https://codereview.chromium.org/2113943002/#
,
Jul 4 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a12be529fb88039cc3090a83c4fbaaf04e13b144 commit a12be529fb88039cc3090a83c4fbaaf04e13b144 Author: agrieve <agrieve@chromium.org> Date: Mon Jul 04 15:40:21 2016 Rework Android resource linting to exclude third_party The existing assumption in the code (that the existense of package name within android_resource() rules determines whether they should be linted) turned out to be false. The new logic does not look at package names, but instead collects all reference resources, and then excludes any of them that were already linted by another android_library(). BUG= 621774 Review-Url: https://codereview.chromium.org/2113943002 Cr-Commit-Position: refs/heads/master@{#403687} [modify] https://crrev.com/a12be529fb88039cc3090a83c4fbaaf04e13b144/build/android/gyp/write_build_config.py [modify] https://crrev.com/a12be529fb88039cc3090a83c4fbaaf04e13b144/build/config/android/internal_rules.gni [modify] https://crrev.com/a12be529fb88039cc3090a83c4fbaaf04e13b144/build/config/android/rules.gni
,
Jul 4 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Jun 29 2016