Commit 09014076 authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Android: Strip out WearOS-specific appcompat resources

They are unused since Chrome doesn't run on Wear OS.

Bug: None
Change-Id: I0282de56b7c35d4e651543a8cf649b1fe259a227
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2154823
Commit-Queue: Theresa  <twellington@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#760557}
parent dad1ce24
...@@ -156,14 +156,11 @@ template("chrome_public_common_apk_or_module_tmpl") { ...@@ -156,14 +156,11 @@ template("chrome_public_common_apk_or_module_tmpl") {
} }
target_sdk_version = android_sdk_version target_sdk_version = android_sdk_version
# Match drawables, but not mipmaps. # Strip xxxhdpi images to save size. It's extremely difficult to see the
# difference without magnification.
resource_exclusion_regex = "drawable[^/]*-xxxhdpi" resource_exclusion_regex = "drawable[^/]*-xxxhdpi"
if (min_sdk_version >= 21) {
# Resources used by AndroidManifest.xml only for pre-21.
resource_exclusion_regex += "|app_single_page_icon"
}
# Exception rationale in https://crbug.com/691733. # Exceptions (rationale in https://crbug.com/691733):
resource_exclusion_exceptions = [ resource_exclusion_exceptions = [
"*shadow*", # Combination of gradient & transparency cause pixelation. "*shadow*", # Combination of gradient & transparency cause pixelation.
"*.9.*", # Most nine-patches contain shadows. "*.9.*", # Most nine-patches contain shadows.
...@@ -172,6 +169,14 @@ template("chrome_public_common_apk_or_module_tmpl") { ...@@ -172,6 +169,14 @@ template("chrome_public_common_apk_or_module_tmpl") {
"*ic_group_*", # Appear only in xxxhdpi. "*ic_group_*", # Appear only in xxxhdpi.
] ]
if (min_sdk_version >= 21) {
# Resources used by AndroidManifest.xml only for pre-21.
resource_exclusion_regex += "|app_single_page_icon"
}
# Remove WearOS resources (a couple exist in appcompat).
resource_exclusion_regex += "|-watch\b"
if (!_is_monochrome) { if (!_is_monochrome) {
product_config_java_packages = [ "org.chromium.chrome.browser" ] product_config_java_packages = [ "org.chromium.chrome.browser" ]
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment