• Peter Wen's avatar
    Android: Enable custom lint checks from aars (reland) · 33026f0b
    Peter Wen authored
    Some aar files (e.g. androidx) that chrome depends on contain a lint.jar
    file and/or a annotations.zip file. The lint.jar file includes custom
    android lint checks. The annotations.zip file contains @IntDef and other
    annotations needed for lint checks that are usually available by source
    but are not available in aars.
    
    By using these files, we can make our existing lint checks more
    comprehensive as well as benefit from lint checks by the aar library
    authors.
    
    See newly ignored checks in lint-baseline.xml which is updated in this
    CL as an example. Actually fixing these errors is left for future CLs
    in order to enable them quicker and avoid unnecessary relands.
    
    Original CL: https://crrev.com/c/2510793
    
    Fixed:
    - Avoid ../../ prefix in temporary extraction of aar files.
    
    Tbr: Reland with trivial fix.
    Bug: 1078229
    Change-Id: I0236043cf949e94bf0dee5714a620a9e96239616
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2532664Reviewed-by: default avatarPeter Wen <wnwen@chromium.org>
    Commit-Queue: Peter Wen <wnwen@chromium.org>
    Auto-Submit: Peter Wen <wnwen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#826429}
    33026f0b
rules.gni 194 KB