mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-11 18:00:29 +00:00
Update proguard configuration
- Remove redundant preservation of cobalt lib constructors. We use lambdas now, so this is no longer needed. - Fix Java crypto lib not being included.
This commit is contained in:
parent
4d18234714
commit
da41c65128
@ -137,6 +137,7 @@ task proguard(type: ProGuardTask, dependsOn: jar) {
|
||||
|
||||
// Add the main runtime jar and all non-shadowed dependencies
|
||||
libraryjars "${System.getProperty('java.home')}/lib/rt.jar"
|
||||
libraryjars "${System.getProperty('java.home')}/lib/jce.jar"
|
||||
doFirst {
|
||||
sourceSets.main.compileClasspath
|
||||
.filter { !it.name.contains("Cobalt") }
|
||||
@ -151,9 +152,6 @@ task proguard(type: ProGuardTask, dependsOn: jar) {
|
||||
|
||||
// Preserve ComputerCraft classes - we only want to strip shadowed files.
|
||||
keep 'class dan200.computercraft.** { *; }'
|
||||
|
||||
// Preserve the constructors in Cobalt library class, as we init them via reflection
|
||||
keepclassmembers 'class org.squiddev.cobalt.lib.** { <init>(...); }'
|
||||
}
|
||||
|
||||
task proguardMove(dependsOn: proguard) {
|
||||
|
Loading…
Reference in New Issue
Block a user