AAPT2: add flag for not compressing resources
Option and behaviour was already implemented, just missing the flag.
Test: N/A
Bug: 70118728
Change-Id: Ib1902cf547b4961395e6c6c99e02f32556981f48
diff --git a/tools/aapt2/cmd/Link.cpp b/tools/aapt2/cmd/Link.cpp
index 0839f6f..69bac04 100644
--- a/tools/aapt2/cmd/Link.cpp
+++ b/tools/aapt2/cmd/Link.cpp
@@ -2151,6 +2151,8 @@
&options.manifest_fixer_options.rename_instrumentation_target_package)
.OptionalFlagList("-0", "File extensions not to compress.",
&options.extensions_to_not_compress)
+ .OptionalSwitch("--no-compress", "Do not compress any resources.",
+ &options.do_not_compress_anything)
.OptionalSwitch("--warn-manifest-validation",
"Treat manifest validation errors as warnings.",
&options.manifest_fixer_options.warn_validation)