Created
March 4, 2014 21:47
-
-
Save mariusk/9356474 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# java -cp /opt/android-studio/sdk/tools/proguard/lib/ -jar /opt/android-studio/sdk/tools/proguard/lib/proguard.jar @proguard.cfg -verbose | |
# robovm-0.0.9/bin/robovm -verbose -arch x86 -os ios -cp tmp.jar -run IOSDemo | |
# | |
# robovm-0.0.9/bin/robovm -verbose -arch x86 -os ios -cp robovm-0.0.9/lib/robovm-objc.jar:robovm-0.0.9/lib/robovm-cocoatouch.jar:classes/ -run IOSDemo | |
-injars robovm-0.0.9/lib/robovm-rt.jar | |
-outjars rt.jar | |
#-libraryjars robovm-0.0.9/lib/robovm-rt.jar | |
-injars robovm-0.0.9/lib/robovm-objc.jar | |
-injars robovm-0.0.9/lib/robovm-cocoatouch.jar | |
-injars classes | |
-outjars app.jar | |
-optimizationpasses 5 | |
-dontobfuscate | |
#-dontoptimize | |
-keepattributes Signature, *Annotation* | |
-keep public class * { | |
public static void main(java.lang.String[]); | |
} | |
-keep class java.lang.* | |
-keep class org.apache.harmony.lang.annotation.* | |
-keep class org.robovm.rt.* | |
# -keep class soot.** { *; } | |
-keep class java.io.FileDescriptor | |
-keep class java.io.PrintWriter | |
-keep class java.io.Serializable | |
-keep class java.math.BigDecimal | |
-keep class java.net.Inet6Address | |
-keep class java.net.InetAddress | |
-keep class java.net.InetSocketAddress | |
-keep class java.nio.charset.CharsetICU | |
-keep class java.text.Bidi$Run | |
-keep class java.text.ParsePosition | |
-keep class java.util.regex.PatternSyntaxException | |
-keep class java.util.zip.Deflater | |
-keep class java.util.zip.Inflater | |
-keep class libcore.icu.LocaleData | |
-keep class libcore.icu.NativeDecimalFormat$FieldPositionIterator | |
-keep class libcore.io.ErrnoException | |
-keep class libcore.io.GaiException | |
-keep class libcore.io.StructAddrinfo | |
-keep class libcore.io.StructFlock | |
-keep class libcore.io.StructGroupReq | |
-keep class libcore.io.StructLinger | |
-keep class libcore.io.StructPasswd | |
-keep class libcore.io.StructPollfd | |
-keep class libcore.io.StructStat | |
-keep class libcore.io.StructStatFs | |
-keep class libcore.io.StructTimeval | |
-keep class libcore.io.StructUtsname | |
-keep class libcore.util.MutableInt | |
-keep class libcore.util.MutableLong | |
-keep class org.robovm.objc.ObjCObject, org.robovm.objc.ObjCObject$** { *; } | |
-keep class org.robovm.objc.ObjCBlock, org.robovm.objc.ObjCBlock$** { *; } | |
-keep class org.robovm.cocoatouch.uikit.UIApplicationDelegate** { *; } | |
-keep class org.robovm.cocoatouch.uikit.UIControl** { *; } | |
-keep class org.robovm.cocoatouch.foundation.** { *; } | |
-keep class org.robovm.rt.bro.Struct** { | |
*; | |
} | |
-keepclasseswithmembers class * { | |
@org.robovm.rt.bro.annotation.StructMember <methods>; | |
} | |
-keepattributes Exceptions,InnerClasses,Signature,Deprecated, | |
SourceFile,LineNumberTable,EnclosingMethod | |
# Preserve all public classes, and their public and protected fields and | |
# methods. | |
-keep public class * { | |
public protected *; | |
} | |
# Preserve all .class method names. | |
-keepclassmembernames class * { | |
java.lang.Class class$(java.lang.String); | |
java.lang.Class class$(java.lang.String, boolean); | |
} | |
# Preserve all native method names and the names of their classes. | |
-keepclasseswithmembernames class * { | |
native <methods>; | |
} | |
# Preserve the special static methods that are required in all enumeration | |
# classes. | |
-keepclassmembers class * extends java.lang.Enum { | |
public static **[] values(); | |
public static ** valueOf(java.lang.String); | |
} | |
# Explicitly preserve all serialization members. The Serializable interface | |
# is only a marker interface, so it wouldn't save them. | |
# You can comment this out if your library doesn't use serialization. | |
# If your code contains serializable classes that have to be backward | |
# compatible, please refer to the manual. | |
-keepclassmembers class * implements java.io.Serializable { | |
static final long serialVersionUID; | |
static final java.io.ObjectStreamField[] serialPersistentFields; | |
private void writeObject(java.io.ObjectOutputStream); | |
private void readObject(java.io.ObjectInputStream); | |
java.lang.Object writeReplace(); | |
java.lang.Object readResolve(); | |
} | |
# Your library may contain more items that need to be preserved; | |
# typically classes that are dynamically created using Class.forName: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment