mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
protect networking and time zone classes from obfuscation/shrinking
This commit is contained in:
parent
d381ece44b
commit
cda1ae81c8
26
openjdk.pro
26
openjdk.pro
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
-keepnames class java.lang.ClassLoader {
|
-keepnames class java.lang.ClassLoader {
|
||||||
public java.lang.Class loadClass(java.lang.String);
|
public java.lang.Class loadClass(java.lang.String);
|
||||||
|
static void loadLibrary(java.lang.Class, java.lang.String, boolean);
|
||||||
private static java.net.URL getBootstrapResource(java.lang.String);
|
private static java.net.URL getBootstrapResource(java.lang.String);
|
||||||
private static java.util.Enumeration getBootstrapResources(java.lang.String);
|
private static java.util.Enumeration getBootstrapResources(java.lang.String);
|
||||||
}
|
}
|
||||||
@ -89,6 +90,10 @@
|
|||||||
public byte[] getBytes(java.lang.String);
|
public byte[] getBytes(java.lang.String);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-keepclassmembers class java.lang.Boolean {
|
||||||
|
public boolean getBoolean(java.lang.String);
|
||||||
|
}
|
||||||
|
|
||||||
-keepclassmembers class java.util.zip.Inflater {
|
-keepclassmembers class java.util.zip.Inflater {
|
||||||
long strm;
|
long strm;
|
||||||
boolean needDict;
|
boolean needDict;
|
||||||
@ -102,6 +107,26 @@
|
|||||||
private int fd;
|
private int fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-keep class java.net.InetAddress {
|
||||||
|
<fields>;
|
||||||
|
}
|
||||||
|
-keep class java.net.Inet4Address {
|
||||||
|
<fields>;
|
||||||
|
}
|
||||||
|
-keep class java.net.Inet4AddressImpl
|
||||||
|
-keep class java.net.Inet6Address {
|
||||||
|
<fields>;
|
||||||
|
}
|
||||||
|
-keep class java.net.Inet6AddressImpl
|
||||||
|
-keep class java.net.InetSocketAddress {
|
||||||
|
public InetSocketAddress(java.net.InetAddress, int);
|
||||||
|
}
|
||||||
|
-keep class java.net.ServerSocket
|
||||||
|
|
||||||
|
-keepclassmembers class java.net.PlainSocketImpl {
|
||||||
|
<fields>;
|
||||||
|
}
|
||||||
|
|
||||||
-keepclassmembers class java.io.FileInputStream {
|
-keepclassmembers class java.io.FileInputStream {
|
||||||
private java.io.FileDescriptor fd;
|
private java.io.FileDescriptor fd;
|
||||||
}
|
}
|
||||||
@ -183,5 +208,6 @@
|
|||||||
|
|
||||||
# referred to by name in LocaleData to load resources:
|
# referred to by name in LocaleData to load resources:
|
||||||
-keep class sun.util.resources.CalendarData
|
-keep class sun.util.resources.CalendarData
|
||||||
|
-keep class sun.util.resources.TimeZoneNames
|
||||||
-keep class sun.text.resources.FormatData
|
-keep class sun.text.resources.FormatData
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user