From d4500878cb82dca1d76401f1731ed2549d2b1f55 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 21 Mar 2017 12:59:29 +0300 Subject: [PATCH] Do not strip some classes from xercesImpl.jar in compiler.pro Note that with this config, the kotlin-compiler.jar's size is increased by 1.5Mb #KT-16968 Fixed --- compiler/compiler.pro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/compiler.pro b/compiler/compiler.pro index 8ed047abd46..8bc9290f823 100644 --- a/compiler/compiler.pro +++ b/compiler/compiler.pro @@ -118,6 +118,13 @@ messages/**) public protected *; } +# 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 *; } + # for kdoc & dokka -keep class com.intellij.openapi.util.TextRange { *; } -keep class com.intellij.lang.impl.PsiBuilderImpl* {