Skip to content

Commit 29e7bcc

Browse files
committed
Add explicitly the proguard rule to save JAXPParserFactory#createParser
And remove obsolete rules.
1 parent d64140a commit 29e7bcc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

compiler/compiler.pro

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ messages/**)
6363

6464
-keep class org.fusesource.** { *; }
6565
-keep class com.sun.jna.** { *; }
66-
-keep class org.jdom.input.JAXPParserFactory { *; }
6766

6867
-keep class org.jetbrains.annotations.** {
6968
public protected *;
@@ -121,11 +120,8 @@ messages/**)
121120
}
122121

123122
# This is needed so that the platform code which parses XML wouldn't fail, see KT-16968
124-
# Note that these directives probably keep too much in the compiler JAR, we might not need all classes in these packages
125-
-keep class org.apache.xerces.impl.** { public *; }
126-
-keep class org.apache.xerces.jaxp.** { public *; }
127-
-keep class org.apache.xerces.parsers.** { public *; }
128-
-keep class org.apache.xml.** { public *; }
123+
# This API is used from org.jdom.input.SAXBuilder via reflection.
124+
-keep class org.jdom.input.JAXPParserFactory { public ** createParser(...); }
129125

130126
# for kdoc & dokka
131127
-keep class com.intellij.openapi.util.TextRange { *; }

0 commit comments

Comments
 (0)