diff --git a/build.xml b/build.xml index 7f31ea007fd..239a85e8411 100644 --- a/build.xml +++ b/build.xml @@ -617,13 +617,6 @@ - - - - - - - + + + + + + + + + + + + + + + + + - + - - - + @@ -1224,11 +1232,10 @@ - - - + + @@ -1239,17 +1246,18 @@ - - + + + + - diff --git a/core/reflection.jvm/reflection.pro b/core/reflection.jvm/reflection.pro new file mode 100644 index 00000000000..9ef762ce544 --- /dev/null +++ b/core/reflection.jvm/reflection.pro @@ -0,0 +1,36 @@ +-injars '/kotlin-reflect-before-proguard.jar' +-outjars '/lib/kotlin-reflect.jar' + +-dontnote ** + +-libraryjars '' +-libraryjars '/lib/kotlin-runtime.jar' + +-target 1.6 +-dontoptimize +-dontobfuscate +# -dontshrink + +-keep public class kotlin.reflect.* { *; } +-keep public class kotlin.reflect.jvm.* { *; } +-keep public class kotlin.reflect.full.* { *; } + +-keepattributes SourceFile,LineNumberTable,InnerClasses,Signature,Deprecated,*Annotation*,EnclosingMethod + +-keep class kotlin.reflect.jvm.internal.ReflectionFactoryImpl { public protected *; } + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keepclassmembers class * { + ** toString(); +} + +# For tests on HashPMap, see compiler/testData/codegen/box/hashPMap +-keepclassmembers class kotlin.reflect.jvm.internal.pcollections.HashPMap { + public int size(); + public boolean containsKey(java.lang.Object); + public kotlin.reflect.jvm.internal.pcollections.HashPMap minus(java.lang.Object); +}