mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-01 14:44:26 +02:00
Now adding line breakpoints when debugging should be easier in Eclipse, Netbeans and IDEA.
This commit is contained in:
parent
ed0e4eb64c
commit
fba0918b80
@ -86,17 +86,17 @@ public class SmaliDecoder {
|
|||||||
file.resolveSibling(fileName + ".java"), Charset.defaultCharset())
|
file.resolveSibling(fileName + ".java"), Charset.defaultCharset())
|
||||||
) {
|
) {
|
||||||
TypeName type = TypeName.fromPath(mOutDir.relativize(file.resolveSibling(fileName)));
|
TypeName type = TypeName.fromPath(mOutDir.relativize(file.resolveSibling(fileName)));
|
||||||
out.write("package " + type.package_ + "; class " + type.getName(true, true) + " {");
|
out.write("package " + type.package_ + "; class " + type.getName(true, true) + " { void a() { int a;");
|
||||||
out.newLine();
|
out.newLine();
|
||||||
|
|
||||||
String line;
|
String line;
|
||||||
while ((line = in.readLine()) != null) {
|
while ((line = in.readLine()) != null) {
|
||||||
out.write("// ");
|
out.write(";// ");
|
||||||
out.write(line);
|
out.write(line);
|
||||||
out.newLine();
|
out.newLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
out.write("}");
|
out.write("}}");
|
||||||
out.newLine();
|
out.newLine();
|
||||||
}
|
}
|
||||||
Files.delete(file);
|
Files.delete(file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user