From d7351ce474a0584652f167d969359c4ef4230c5e Mon Sep 17 00:00:00 2001 From: Gravit Date: Wed, 24 Apr 2019 17:06:48 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=A4=D0=B8=D0=BA=D1=81=D1=8B=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20=D1=81=20ProGuard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gravit/launcher/events/request/LauncherRequestEvent.java | 2 +- .../gravit/launcher/events/request/ProfilesRequestEvent.java | 2 -- .../src/main/java/ru/gravit/launcher/hasher/HashedDir.java | 3 ++- .../src/main/java/ru/gravit/launcher/hasher/HashedFile.java | 2 ++ 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libLauncher/src/main/java/ru/gravit/launcher/events/request/LauncherRequestEvent.java b/libLauncher/src/main/java/ru/gravit/launcher/events/request/LauncherRequestEvent.java index a8c51c03..72efc8a6 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/events/request/LauncherRequestEvent.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/events/request/LauncherRequestEvent.java @@ -19,7 +19,7 @@ public LauncherRequestEvent(boolean needUpdate, String url) { this.needUpdate = needUpdate; this.url = url; } - + @LauncherNetworkAPI public boolean needUpdate; public LauncherRequestEvent(boolean b, byte[] digest) { diff --git a/libLauncher/src/main/java/ru/gravit/launcher/events/request/ProfilesRequestEvent.java b/libLauncher/src/main/java/ru/gravit/launcher/events/request/ProfilesRequestEvent.java index edfae7b3..0de636c9 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/events/request/ProfilesRequestEvent.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/events/request/ProfilesRequestEvent.java @@ -20,8 +20,6 @@ public ProfilesRequestEvent(List profiles) { public ProfilesRequestEvent() { } - String error; - @Override public UUID getUUID() { return uuid; diff --git a/libLauncher/src/main/java/ru/gravit/launcher/hasher/HashedDir.java b/libLauncher/src/main/java/ru/gravit/launcher/hasher/HashedDir.java index 86079f27..699f9474 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/hasher/HashedDir.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/hasher/HashedDir.java @@ -1,6 +1,7 @@ package ru.gravit.launcher.hasher; import ru.gravit.launcher.LauncherAPI; +import ru.gravit.launcher.LauncherNetworkAPI; import ru.gravit.launcher.serialize.HInput; import ru.gravit.launcher.serialize.HOutput; import ru.gravit.launcher.serialize.stream.EnumSerializer; @@ -100,7 +101,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO return super.visitFile(file, attrs); } } - + @LauncherNetworkAPI private final Map map = new HashMap<>(32); @LauncherAPI diff --git a/libLauncher/src/main/java/ru/gravit/launcher/hasher/HashedFile.java b/libLauncher/src/main/java/ru/gravit/launcher/hasher/HashedFile.java index 9179ff9a..3827f77d 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/hasher/HashedFile.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/hasher/HashedFile.java @@ -1,6 +1,7 @@ package ru.gravit.launcher.hasher; import ru.gravit.launcher.LauncherAPI; +import ru.gravit.launcher.LauncherNetworkAPI; import ru.gravit.launcher.serialize.HInput; import ru.gravit.launcher.serialize.HOutput; import ru.gravit.utils.helper.IOHelper; @@ -18,6 +19,7 @@ public final class HashedFile extends HashedEntry { // Instance @LauncherAPI public final long size; + @LauncherNetworkAPI private final byte[] digest; @LauncherAPI