add proguard include file to support minimal classpaths

This commit is contained in:
Joel Dice 2008-01-18 17:56:12 -07:00
parent 35160e46d8
commit c894543806

37
vm.pro Normal file
View File

@ -0,0 +1,37 @@
# proguard include file (http://proguard.sourceforge.net)
# we call the values method reflectively in Enum.valueOf():
-keep public class * extends java.lang.Enum {
public static *** values();
}
# the VM depends on a fixed layout for the following classes:
-keepclassmembers class java.lang.Class { <fields>; }
-keepclassmembers class java.lang.ClassLoader { <fields>; }
-keepclassmembers class java.lang.SystemClassLoader { <fields>; }
-keepclassmembers class java.lang.String { <fields>; }
-keepclassmembers class java.lang.Thread { <fields>; }
-keepclassmembers class java.lang.StackTraceElement { <fields>; }
-keepclassmembers class java.lang.Throwable { <fields>; }
-keepclassmembers class java.lang.Byte { <fields>; }
-keepclassmembers class java.lang.Boolean { <fields>; }
-keepclassmembers class java.lang.Short { <fields>; }
-keepclassmembers class java.lang.Character { <fields>; }
-keepclassmembers class java.lang.Integer { <fields>; }
-keepclassmembers class java.lang.Long { <fields>; }
-keepclassmembers class java.lang.Float { <fields>; }
-keepclassmembers class java.lang.Double { <fields>; }
-keepclassmembers class java.lang.ref.Reference { <fields>; }
-keepclassmembers class java.lang.ref.ReferenceQueue { <fields>; }
-keepclassmembers class java.lang.ref.WeakReference { <fields>; }
-keepclassmembers class java.lang.ref.PhantomReference { <fields>; }
-keepclassmembers class java.lang.reflect.Field { <fields>; }
-keepclassmembers class java.lang.reflect.Method { <fields>; }
-keepnames public class java.lang.*
-keepclasseswithmembernames class * {
native <methods>;
}