Skip to content

Commit

Permalink
Fix proguard; cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexIIL committed Aug 1, 2023
1 parent 4a0b3bf commit 786669a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion proguard.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
-keepparameternames
-keepattributes *

-keep class !org.quiltmc.loader.impl.lib {
-keep class !org.quiltmc.loader.impl.lib.** {
*;
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void write0(FileChannel channel) throws IOException {

final Deque<Directory> stack = new ArrayDeque<>();

try (BufferedWriter bw = Files.newBufferedWriter(Paths.get("quilt-zip-custom-compressed-writer-in.txt"))){
try {
Files.walkFileTree(src, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
Expand All @@ -117,8 +117,6 @@ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) th
parent.childDirectories.add(sub);
}
stack.push(sub);
bw.append(dir.toString());
bw.newLine();
return FileVisitResult.CONTINUE;
}

Expand All @@ -130,8 +128,6 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
}
stack.peek().childFiles.add(file);
sourceFiles.add(file);
bw.append(file.toString());
bw.newLine();
return FileVisitResult.CONTINUE;
}

Expand Down

0 comments on commit 786669a

Please sign in to comment.