Commit bef6d196 authored by Sam Maier's avatar Sam Maier Committed by Commit Bot

Only stripping resources for cast_framework in release

Bug: 992461
Change-Id: I89026c422872e499f8038814a2a98c68e9fa422d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1796103
Commit-Queue: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695213}
parent 53523844
......@@ -870,7 +870,8 @@ android_aar_prebuilt("google_play_services_cast_framework_java") {
]
# Removing all resources from cast framework as they are unused bloat.
strip_resources = true
# Can only safely remove them when R8 will strip the path that accesses them.
strip_resources = !is_java_debug
}
# This is generated, do not edit. Update BuildConfigGenerator.groovy instead.
......
......@@ -229,7 +229,8 @@ class BuildConfigGenerator extends DefaultTask {
if (isPlayServicesTarget(dependencyId)) {
if (Pattern.matches(".*cast_framework.*", dependencyId)) {
sb.append(' # Removing all resources from cast framework as they are unused bloat.\n')
sb.append(' strip_resources = true\n')
sb.append(' # Can only safely remove them when R8 will strip the path that accesses them.\n')
sb.append(' strip_resources = !is_java_debug\n')
} else {
sb.append(' # Removing drawables from GMS .aars as they are unused bloat.\n')
sb.append(' strip_drawables = true\n')
......
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