Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8bfabed authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

[aapt2] Add --enable-compact-entries to optimize

The optimize command should have the same switches as convert
and link, so adding the missing one here

Test: build
Flag: EXEMPT minor change
Change-Id: I9e5f3d7fb65db97a14fc952c30407d594057c5bc
parent 3606ee41
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 "