build: no classes rename in jarjar

build: fixed proguard shrinking
This commit is contained in:
Leonid Shalupov
2013-02-12 16:06:15 +04:00
committed by Andrey Breslav
parent a5cecd6048
commit 0a1303d118
9 changed files with 42 additions and 52 deletions
+17 -27
View File
@@ -269,9 +269,8 @@
-injars '${output}/kotlin-compiler-before-proguard.jar'
-outjars '${kotlin-home}/lib/kotlin-compiler.jar'
-dontwarn org.jetbrains.jet.internal.com.intellij.util.**
-dontwarn org.jetbrains.jet.internal.com.intellij.codeInsight.**
-dontwarn org.jetbrains.jet.internal.com.thoughtworks.xstream.**
-dontwarn com.intellij.util.ui.IsRetina*
-dontwarn com.intellij.util.RetinaImage*
-dontwarn org.fusesource.**
-libraryjars '${rtjar}'
@@ -281,10 +280,7 @@
-dontobfuscate
-keep class org.fusesource.** { *; }
-keepclasseswithmembers public class * {
public static void main(java.lang.String[]);
}
-keep class org.jdom.input.JAXPParserFactory { *; }
-keep class org.jetbrains.annotations.** {
public protected *;
@@ -302,27 +298,12 @@
public protected *;
}
-keepclasseswithmembers class * { void start(); }
-keep class com.intellij.psi.** {
public protected *;
}
-keepclasseswithmembers class * { void stop(); }
-keepclasseswithmembers class * { void dispose(); }
-keepclasseswithmembers class * { ** getFileSystem(); }
-keepclasseswithmembers class * { ** isVarArgs(); }
-keepclasseswithmembers class * { ** getApplication(); }
-keepclasseswithmembers class * { ** finalizeReferent(); }
-keepclasseswithmembers class * { ** newBuilder(); }
-keepclasseswithmembers class * { ** startFinalizer(java.lang.Class,java.lang.Object); }
-keepclasseswithmembers class * { ** executeOnPooledThread(java.lang.Runnable); }
-keepclasseswithmembers class * { ** getUserData(java.lang.String); }
-keepclasseswithmembers class * { int getBooleanAttributes(java.io.File); }
-keepclasseswithmembers class * { ** project(); }
-keepclasseswithmembers class * { ** TYPE; }
-keepclasseswithmembers class * { ** ourInstance; }
-keepclasseswithmembers class * { <init>(kotlinc.internal.com.intellij.lang.ASTNode); }
# for kdoc
-keep class com.intellij.openapi.util.TextRange { *; }
-keepclassmembers enum * {
public static **[] values();
@@ -332,6 +313,9 @@
-keepclassmembers class * {
** toString();
** hashCode();
void start();
void stop();
void dispose();
}
]]></proguard>
</else>
@@ -466,6 +450,10 @@
<zap pattern="com.thoughtworks.xstream.io.xml.Dom4J*"/>
<zap pattern="com.thoughtworks.xstream.io.xml.Xom*"/>
<zap pattern="com.thoughtworks.xstream.mapper.CGLIBMapper*"/>
<zap pattern="com.thoughtworks.xstream.io.json.Jettison*"/>
<zap pattern="com.thoughtworks.xstream.io.xml.Wstx*"/>
<zap pattern="com.thoughtworks.xstream.io.xml.KXml2*"/>
<zap pattern="com.thoughtworks.xstream.io.xml.BEAStax*"/>
<zap pattern="org.apache.log4j.jmx.Agent"/>
<zap pattern="org.apache.log4j.net.JMS*"/>
@@ -476,6 +464,7 @@
<zap pattern="org.mozilla.javascript.xml.impl.xmlbeans.**"/>
<!--
<rule pattern="com.intellij.**" result="org.jetbrains.jet.internal.com.intellij.@1"/>
<rule pattern="com.sun.jna.**" result="org.jetbrains.jet.internal.com.sun.jna.@1"/>
<rule pattern="org.apache.log4j.**" result="org.jetbrains.jet.internal.org.apache.log4j.@1"/>
@@ -493,6 +482,7 @@
<rule pattern="org.mozilla.**" result="org.jetbrains.jet.internal.org.mozilla.@1"/>
<rule pattern="org.xmlpull.**" result="org.jetbrains.jet.internal.org.xmlpull.@1"/>
<rule pattern="org.kohsuke.args4j.**" result="org.jetbrains.jet.internal.org.kohsuke.args4j.@1"/>
-->
<manifest>
<attribute name="Built-By" value="JetBrains"/>