fix proguard not seeing unsafe 2

This commit is contained in:
Wagyourtail 2022-12-02 14:39:57 -07:00
parent 75cd4600a0
commit f7f0c84407
No known key found for this signature in database
GPG Key ID: 0D30679891BED858
2 changed files with 2 additions and 4 deletions

View File

@ -225,6 +225,7 @@ public class ProguardTask extends BaritoneGradleTask {
template.add(2, "-libraryjars <java.home>/jmods/java.base.jmod(!**.jar;!module-info.class)");
template.add(3, "-libraryjars <java.home>/jmods/java.desktop.jmod(!**.jar;!module-info.class)");
template.add(4, "-libraryjars <java.home>/jmods/jdk.unsupported.jmod(!**.jar;!module-info.class)");
{
final Stream<File> libraries;

View File

@ -339,7 +339,4 @@
public int length();
public java.lang.String substring(int);
public java.lang.String substring(int,int);
}
-keep class sun.misc.Unsafe { *; }
-dontnote sun.misc.Unsafe
}