From 61ccb4ae62731ddf8a98593cb17cebb11d4199cb Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Wed, 28 Apr 2021 21:57:49 +0200 Subject: [PATCH] Keep forge-specific classes in the proguard gradle task --- build.gradle.kts | 3 ++- .../username404/snowygui/forge/{forgeInit.kt => ForgeInit.kt} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename forge/src/main/kotlin/fr/username404/snowygui/forge/{forgeInit.kt => ForgeInit.kt} (100%) diff --git a/build.gradle.kts b/build.gradle.kts index 264abdb..dddf0ac 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -41,7 +41,8 @@ subprojects { injars(this@tasks.getByName("remapJar")) outjars("$rootDir/shrinkedJars/") keep("class $group.snowygui.mixins.* { * ; }") - keep("class $group.snowygui.fabric.** { * ; }") + keep("class $group.snowygui.fabric.**") + keep("class $group.snowygui.forge.**") keepnames("class $group.snowygui.Snowy") keepclassmembers("class $group.snowygui.** { public protected ; }") keepattributes("*Annotation*, Signature, InnerClasses, EnclosingMethod, MethodParameters, Synthetic, Exceptions") diff --git a/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt b/forge/src/main/kotlin/fr/username404/snowygui/forge/ForgeInit.kt similarity index 100% rename from forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt rename to forge/src/main/kotlin/fr/username404/snowygui/forge/ForgeInit.kt