feat(res): disable XML pretty print (PR #2087)

Co-authored-by: bagipro <bugi@bugi>
This commit is contained in:
bagipro
2024-01-23 00:01:38 +09:00
committed by GitHub
parent a19aec9d9f
commit e73612b4d2
4 changed files with 24 additions and 3 deletions
@@ -81,6 +81,9 @@ public class JadxCLIArgs {
@Parameter(names = { "--show-bad-code" }, description = "show inconsistent code (incorrectly decompiled)")
protected boolean showInconsistentCode = false;
@Parameter(names = { "--no-xml-pretty-print" }, description = "do not prettify XML")
protected boolean skipXmlPrettyPrint = false;
@Parameter(names = { "--no-imports" }, description = "disable use of imports, always write entire package name")
protected boolean useImports = true;
@@ -331,6 +334,7 @@ public class JadxCLIArgs {
args.setEscapeUnicode(escapeUnicode);
args.setRespectBytecodeAccModifiers(respectBytecodeAccessModifiers);
args.setExportAsGradleProject(exportAsGradleProject);
args.setSkipXmlPrettyPrint(skipXmlPrettyPrint);
args.setUseImports(useImports);
args.setDebugInfo(debugInfo);
args.setInsertDebugLines(addDebugLines);
@@ -504,6 +508,10 @@ public class JadxCLIArgs {
return exportAsGradleProject;
}
public boolean isSkipXmlPrettyPrint() {
return skipXmlPrettyPrint;
}
public boolean isRenameCaseSensitive() {
return renameFlags.contains(RenameEnum.CASE);
}