From c894543806ac2127d1329428434ad58dde8563bf Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 18 Jan 2008 17:56:12 -0700 Subject: [PATCH] add proguard include file to support minimal classpaths --- vm.pro | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 vm.pro diff --git a/vm.pro b/vm.pro new file mode 100644 index 0000000000..3dd9c82e6b --- /dev/null +++ b/vm.pro @@ -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 { ; } +-keepclassmembers class java.lang.ClassLoader { ; } +-keepclassmembers class java.lang.SystemClassLoader { ; } +-keepclassmembers class java.lang.String { ; } +-keepclassmembers class java.lang.Thread { ; } +-keepclassmembers class java.lang.StackTraceElement { ; } +-keepclassmembers class java.lang.Throwable { ; } +-keepclassmembers class java.lang.Byte { ; } +-keepclassmembers class java.lang.Boolean { ; } +-keepclassmembers class java.lang.Short { ; } +-keepclassmembers class java.lang.Character { ; } +-keepclassmembers class java.lang.Integer { ; } +-keepclassmembers class java.lang.Long { ; } +-keepclassmembers class java.lang.Float { ; } +-keepclassmembers class java.lang.Double { ; } +-keepclassmembers class java.lang.ref.Reference { ; } +-keepclassmembers class java.lang.ref.ReferenceQueue { ; } +-keepclassmembers class java.lang.ref.WeakReference { ; } +-keepclassmembers class java.lang.ref.PhantomReference { ; } +-keepclassmembers class java.lang.reflect.Field { ; } +-keepclassmembers class java.lang.reflect.Method { ; } + +-keepnames public class java.lang.* + +-keepclasseswithmembernames class * { + native ; + }