From 29e7bcce651e898114e28b280a9bd7ad87fa011b Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Tue, 18 Apr 2017 19:36:12 +0300 Subject: [PATCH] Add explicitly the proguard rule to save JAXPParserFactory#createParser And remove obsolete rules. --- compiler/compiler.pro | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/compiler/compiler.pro b/compiler/compiler.pro index 2e1a9dc239c..c84e0a83786 100644 --- a/compiler/compiler.pro +++ b/compiler/compiler.pro @@ -63,7 +63,6 @@ messages/**) -keep class org.fusesource.** { *; } -keep class com.sun.jna.** { *; } --keep class org.jdom.input.JAXPParserFactory { *; } -keep class org.jetbrains.annotations.** { public protected *; @@ -121,11 +120,8 @@ messages/**) } # This is needed so that the platform code which parses XML wouldn't fail, see KT-16968 -# Note that these directives probably keep too much in the compiler JAR, we might not need all classes in these packages --keep class org.apache.xerces.impl.** { public *; } --keep class org.apache.xerces.jaxp.** { public *; } --keep class org.apache.xerces.parsers.** { public *; } --keep class org.apache.xml.** { public *; } +# This API is used from org.jdom.input.SAXBuilder via reflection. +-keep class org.jdom.input.JAXPParserFactory { public ** createParser(...); } # for kdoc & dokka -keep class com.intellij.openapi.util.TextRange { *; }