summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-07-10 22:11:36 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-07-10 22:11:36 +0000
commitabf6f68c18ace130d8af26266a51be4dd4c99da8 (patch)
tree421e627f82a7bc986ef3f09c79fd85134a7c0cc1
parent02dc69937dee3219f050619b824ce87616ff6357 (diff)
parenta8bfabed31a765d18900b9115355bdb876ce5f58 (diff)
Merge "[aapt2] Add --enable-compact-entries to optimize" into main
-rw-r--r--tools/aapt2/cmd/Optimize.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt2/cmd/Optimize.h b/tools/aapt2/cmd/Optimize.h
index ee53af107b17..012b0f230ca2 100644
--- a/tools/aapt2/cmd/Optimize.h
+++ b/tools/aapt2/cmd/Optimize.h
@@ -116,6 +116,10 @@ class OptimizeCommand : public Command {
"This decreases APK size at the cost of resource retrieval performance.\n"
"Applies sparse encoding to all resources regardless of minSdk.",
&options_.force_sparse_encoding);
+ AddOptionalSwitch(
+ "--enable-compact-entries",
+ "This decreases APK size by using compact resource entries for simple data types.",
+ &options_.table_flattener_options.use_compact_entries);
AddOptionalSwitch("--collapse-resource-names",
"Collapses resource names to a single value in the key string pool. Resources can \n"
"be exempted using the \"no_collapse\" directive in a file specified by "