commit | 7c643808f1f9194594889545af7f839c29d3b0ac | [log] [tgz] |
---|---|---|
author | Mohamed Heikal <mheikal@chromium.org> | Thu Apr 15 15:39:27 2021 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Apr 15 15:45:12 2021 |
tree | bddaf67e1fb3ae8a5cb2205e2a9b1f8642027fb6 | |
parent | 180226d9c43a4ea92c1ae735cae2af34ee43d5b1 [diff] |
Android: Land unused resources detector in repo This unused resources finder is based on gradle's resource shrinking. This cl lands it into the repo and creates a template for using it. The output of the tool is an aapt2 config file with unused resources marked as "remove". This tool is copied (with heavy modification) from https://android.googlesource.com/platform/tools/base/+/master/build-system/gradle-core/src/main/groovy/com/android/build/gradle/tasks/ResourceUsageAnalyzer.java (actually it's copied from the currently private source at HEAD, but this is the best opensource link I could find). Bug: 1195015 Change-Id: I17a6439138796e472f7a624ed778fb598398e385 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2826352 Reviewed-by: Peter Wen <wnwen@chromium.org> Reviewed-by: Dirk Pranke <dpranke@google.com> Commit-Queue: Mohamed Heikal <mheikal@chromium.org> Cr-Commit-Position: refs/heads/master@{#872876} GitOrigin-RevId: a9dd71a67ee0440e550e940547d3319cbb3209d5