[FIX] Фиксы работы с ProGuard

This commit is contained in:
Gravit 2019-04-24 17:06:48 +07:00
parent a49e523d5d
commit d7351ce474
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
4 changed files with 5 additions and 4 deletions

View file

@ -19,7 +19,7 @@ public LauncherRequestEvent(boolean needUpdate, String url) {
this.needUpdate = needUpdate; this.needUpdate = needUpdate;
this.url = url; this.url = url;
} }
@LauncherNetworkAPI
public boolean needUpdate; public boolean needUpdate;
public LauncherRequestEvent(boolean b, byte[] digest) { public LauncherRequestEvent(boolean b, byte[] digest) {

View file

@ -20,8 +20,6 @@ public ProfilesRequestEvent(List<ClientProfile> profiles) {
public ProfilesRequestEvent() { public ProfilesRequestEvent() {
} }
String error;
@Override @Override
public UUID getUUID() { public UUID getUUID() {
return uuid; return uuid;

View file

@ -1,6 +1,7 @@
package ru.gravit.launcher.hasher; package ru.gravit.launcher.hasher;
import ru.gravit.launcher.LauncherAPI; import ru.gravit.launcher.LauncherAPI;
import ru.gravit.launcher.LauncherNetworkAPI;
import ru.gravit.launcher.serialize.HInput; import ru.gravit.launcher.serialize.HInput;
import ru.gravit.launcher.serialize.HOutput; import ru.gravit.launcher.serialize.HOutput;
import ru.gravit.launcher.serialize.stream.EnumSerializer; 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); return super.visitFile(file, attrs);
} }
} }
@LauncherNetworkAPI
private final Map<String, HashedEntry> map = new HashMap<>(32); private final Map<String, HashedEntry> map = new HashMap<>(32);
@LauncherAPI @LauncherAPI

View file

@ -1,6 +1,7 @@
package ru.gravit.launcher.hasher; package ru.gravit.launcher.hasher;
import ru.gravit.launcher.LauncherAPI; import ru.gravit.launcher.LauncherAPI;
import ru.gravit.launcher.LauncherNetworkAPI;
import ru.gravit.launcher.serialize.HInput; import ru.gravit.launcher.serialize.HInput;
import ru.gravit.launcher.serialize.HOutput; import ru.gravit.launcher.serialize.HOutput;
import ru.gravit.utils.helper.IOHelper; import ru.gravit.utils.helper.IOHelper;
@ -18,6 +19,7 @@ public final class HashedFile extends HashedEntry {
// Instance // Instance
@LauncherAPI @LauncherAPI
public final long size; public final long size;
@LauncherNetworkAPI
private final byte[] digest; private final byte[] digest;
@LauncherAPI @LauncherAPI