[ANY] Исправлегия конфигурации ProGuard, Gradle, патчей и прочих констант

This commit is contained in:
Gravit 2019-06-02 09:08:35 +07:00
parent 62fa95a5b3
commit 3d07b88adc
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
6 changed files with 16 additions and 16 deletions

View file

@ -29,12 +29,12 @@ public JAConfigurator(String configclass, MainBuildTask jarLauncherBinary) throw
}
public void addModuleClass(String fullName) {
moduleBody.append("ru.gravit.launcher.modules.Module mod");
moduleBody.append("pro.gravit.launcher.modules.Module mod");
moduleBody.append(autoincrement);
moduleBody.append(" = new ");
moduleBody.append(fullName);
moduleBody.append("();");
moduleBody.append("ru.gravit.launcher.Launcher.modulesManager.registerModule( mod");
moduleBody.append("pro.gravit.launcher.Launcher.modulesManager.registerModule( mod");
moduleBody.append(autoincrement);
moduleBody.append(");");
autoincrement++;

View file

@ -14,39 +14,39 @@
-forceprocessing
-overloadaggressively
-repackageclasses 'ru.gravit.launcher'
-repackageclasses 'pro.gravit.launcher'
-keepattributes SourceFile,LineNumberTable,*Annotation*
-renamesourcefileattribute SourceFile
-keepattributes Signature
-adaptresourcefilecontents META-INF/MANIFEST.MF
-keeppackagenames com.mojang.**,net.minecraftforge.fml.**,cpw.mods.fml.**,com.google.gson.**,ru.gravit.repackage.**,org.fusesource.**
-keeppackagenames com.mojang.**,net.minecraftforge.fml.**,cpw.mods.fml.**,com.google.gson.**,pro.gravit.repackage.**,org.fusesource.**
-keep class com.mojang.**,net.minecraftforge.fml.**,cpw.mods.fml.**,com.google.gson.**,ru.gravit.repackage.**,org.fusesource.** {
-keep class com.mojang.**,net.minecraftforge.fml.**,cpw.mods.fml.**,com.google.gson.**,pro.gravit.repackage.**,org.fusesource.** {
*;
}
-keepclassmembers @ru.gravit.launcher.LauncherAPI class ** {
-keepclassmembers @pro.gravit.launcher.LauncherAPI class ** {
<fields>;
<methods>;
}
-keepclassmembers @ru.gravit.launcher.LauncherNetworkAPI class ** {
-keepclassmembers @pro.gravit.launcher.LauncherNetworkAPI class ** {
<fields>;
<methods>;
}
-keepclassmembers class ** {
@ru.gravit.launcher.LauncherAPI
@pro.gravit.launcher.LauncherAPI
<fields>;
@ru.gravit.launcher.LauncherAPI
@pro.gravit.launcher.LauncherAPI
<methods>;
}
-keepclassmembers class ** {
@ru.gravit.launcher.LauncherNetworkAPI
@pro.gravit.launcher.LauncherNetworkAPI
<fields>;
@ru.gravit.launcher.LauncherNetworkAPI
@pro.gravit.launcher.LauncherNetworkAPI
<methods>;
}

View file

@ -30,8 +30,8 @@
shadowJar {
classifier = null
relocate 'org.objectweb.asm', 'ru.gravit.repackage.org.objectweb.asm'
relocate 'io.netty', 'ru.gravit.repackage.io.netty'
relocate 'org.objectweb.asm', 'pro.gravit.repackage.org.objectweb.asm'
relocate 'io.netty', 'pro.gravit.repackage.io.netty'
configurations = [project.configurations.pack]
exclude 'module-info.class'
}

View file

@ -34,7 +34,7 @@ pack project(':LauncherAuthlib')
shadowJar {
classifier = null
relocate 'io.netty', 'ru.gravit.repackage.io.netty'
relocate 'io.netty', 'pro.gravit.repackage.io.netty'
configurations = [project.configurations.pack]
exclude 'module-info.class'
}

View file

@ -7,7 +7,7 @@
apply plugin: 'eclipse'
apply plugin: 'java'
group = 'ru.gravit'
group = 'pro.gravit'
repositories {
mavenCentral()

View file

@ -7,7 +7,7 @@ index f4e83af..d3a6d7f 100644
addClassLoaderExclusion("net.minecraft.launchwrapper.");
+ // classloader launcher exclusions
+ addClassLoaderExclusion("ru.gravit.launcher.");
+ addClassLoaderExclusion("pro.gravit.launcher.");
+ addClassLoaderExclusion("com.mojang.");
+ addClassLoaderExclusion("com.google.gson.");
+ addClassLoaderExclusion("org.json.");