[FEATURE] Опция включения AttachJarTask до ProGuard

This commit is contained in:
Gravit 2019-05-15 22:43:05 +07:00
parent b985ae15a4
commit a409f19f66
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 3 additions and 1 deletions

View file

@ -271,6 +271,7 @@ public static class NettyUpdatesBind
public class LauncherConf {
public String guardType;
public boolean attachLibraryBeforeProGuard;
}
public class NettyConfig {

View file

@ -42,10 +42,11 @@ public JARLauncherBinary(LaunchServer server) throws IOException {
public void init() {
tasks.add(new PrepareBuildTask(server));
tasks.add(new MainBuildTask(server));
if(server.config.launcher.attachLibraryBeforeProGuard) tasks.add(new AttachJarsTask(server));
tasks.add(new ProGuardBuildTask(server));
tasks.add(new AdditionalFixesApplyTask(server));
tasks.add(new RadonBuildTask(server));
tasks.add(new AttachJarsTask(server));
if(!server.config.launcher.attachLibraryBeforeProGuard) tasks.add(new AttachJarsTask(server));
}
@Override