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

Commit 51658963 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents a571f2fa d882ba40
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.",