Commit 7084f3d9 authored by Clark DuVall's avatar Clark DuVall Committed by Chromium LUCI CQ

[WebLayer] Allow running proguard on WebLayer shell APK

Since the shell APK needs to be loaded for perf tests, it can affect
metrics like memory usage if it has too much java code. This shrinks the
size of the shell APK dex from ~9MB to <1MB.

Bug: 1146438
Change-Id: Ife6ddac73ef9fd80995240b23cc6e6760cf833d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2644102
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Auto-Submit: Clark DuVall <cduvall@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845979}
parent 75b02938
......@@ -176,6 +176,7 @@ template("weblayer_instrumentation") {
}
additional_apks += [ "//net/android:net_test_support_apk" ]
data = [ "//weblayer/test/data/" ]
proguard_enabled = !is_java_debug
}
}
......
......@@ -83,6 +83,7 @@ template("weblayer_shell_apk_helper") {
android_manifest_dep = ":$_manifest_target"
command_line_flags_file = "weblayer-command-line"
proguard_enabled = !is_java_debug
# Add a native lib so the ABI is compatible with the implementation APK.
native_lib_placeholders = [ "libdummy.so" ]
......
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