Replace "no_obfuscate" with "no_collapse" when writing resources.cfg.
Both directives are understood by AAPT2, but "no_obfuscate" is basically deprecated.
@@ -155,8 +155,7 @@ public class ProtoResourceUsageAnalyzer extends ResourceUsageAnalyzer {
ImmutableList<String> resourceConfigs =
resources.stream()
.filter(Resource::isKeep)
- // TODO(b/141204955): Update this to no_collapse.
- .map(r -> String.format("%s/%s#no_obfuscate", r.type.getName(), r.name))
+ .map(r -> String.format("%s/%s#no_collapse", r.type.getName(), r.name))
.collect(toImmutableList());
Files.write(resourcesConfigFile, resourceConfigs, StandardCharsets.UTF_8);
