mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[ANY] Исправлегия конфигурации ProGuard, Gradle, патчей и прочих констант
This commit is contained in:
parent
62fa95a5b3
commit
3d07b88adc
6 changed files with 16 additions and 16 deletions
|
@ -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++;
|
||||
|
|
|
@ -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>;
|
||||
}
|
||||
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
apply plugin: 'eclipse'
|
||||
apply plugin: 'java'
|
||||
|
||||
group = 'ru.gravit'
|
||||
group = 'pro.gravit'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue