Pass --deduplicate-entry-values in busybox aapt2 optimize When collapsing resource names, AAPT2 recommends passing --deduplicate-entry-values to deduplicate pairs of resource entry and value for simple resources. This allows storing the same resource value only once in the resource table, reducing APK size. PiperOrigin-RevId: 987013797 Change-Id: I71dfca85e55bbf7b93fa9769b5f0c20a0322f4a4
diff --git a/rules/busybox.bzl b/rules/busybox.bzl index 2ddc576..d7b97c1 100644 --- a/rules/busybox.bzl +++ b/rules/busybox.bzl
@@ -1386,6 +1386,7 @@ output_files.append(resource_path_shortening_map) if resource_optimization_config: args.add("--collapse-resource-names") + args.add("--deduplicate-entry-values") args.add("--resources-config-path", resource_optimization_config) input_files.append(resource_optimization_config) if enable_sparse_encoding: