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

Commit d882ba40 authored by Brian Chang's avatar Brian Chang
Browse files

Rename flags in aapt2-optimize for more accuracy and consistency.

--enable-resource-path-shortening => --shorten-resource-paths
--enable-resource-obfuscation => --collapse-resource-names

Bug: 140883718
Test: Verified by running `aapt2 optimize
Change-Id: I697713f49b27ccf5f152c76e256234c041dc5f51
parent 7fc19171
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -104,11 +104,13 @@ class OptimizeCommand : public Command {
        "Enables encoding sparse entries using a binary search tree.\n"
            "This decreases APK size at the cost of resource retrieval performance.",
        &options_.table_flattener_options.use_sparse_entries);
    AddOptionalSwitch("--enable-resource-obfuscation",
        "Enables obfuscation of key string pool to single value",
    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 "
            "--resources-config-path.",
        &options_.table_flattener_options.collapse_key_stringpool);
    AddOptionalSwitch("--enable-resource-path-shortening",
        "Enables shortening of the path of the resources inside the APK.",
    AddOptionalSwitch("--shorten-resource-paths",
        "Shortens the paths of resources inside the APK.",
        &options_.shorten_resource_paths);
    AddOptionalFlag("--resource-path-shortening-map",
        "Path to output the map of old resource paths to shortened paths.",