aboutsummaryrefslogtreecommitdiff
path: root/dokka.pro
blob: 97eae69309d7a43f9461ed3c15cebee811ae7b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Include java runtime classes
-libraryjars  <java.home>/lib/rt.jar

# Keep filenames and line numbers
-keepattributes SourceFile, LineNumberTable

-target 1.6
-dontoptimize
-dontobfuscate

-ignorewarnings
# -keepdirectories

-dontwarn org.jetbrains.annotations.**
-dontwarn org.apache.commons.httpclient.**
-dontwarn org.apache.tools.ant.**
-dontwarn org.codehaus.plexus.**
-dontwarn hidden.org.codehaus.plexus.**
-dontwarn org.fusesource.**
-dontwarn org.jaxen.jdom.**

-keep class org.jetbrains.dokka.** { *; }
-keep class org.fusesource.** { *; }
-keep class org.jdom.input.JAXPParserFactory { *; }

-keep class org.jetbrains.annotations.** {
    public protected *;
}

-keep class javax.inject.** {
    public protected *;
}

-keep class org.jetbrains.kotlin.** {
    public protected *;
}

-keep class org.jetbrains.kotlin.compiler.plugin.** {
    public protected *;
}

-keep class org.jetbrains.kotlin.extensions.** {
    public protected *;
}

-keep class org.jetbrains.org.objectweb.asm.Opcodes { *; }

-keep class org.jetbrains.kotlin.codegen.extensions.** {
    public protected *;
}

-keepclassmembers class com.intellij.openapi.vfs.VirtualFile {
    public InputStream getInputStream();
}

-keep class jet.** {
    public protected *;
}

-keep class com.intellij.psi.** {
    public protected *;
}

# for kdoc & dokka
-keep class com.intellij.openapi.util.TextRange { *; }
-keep class com.intellij.lang.impl.PsiBuilderImpl* {
    public protected *;
}
-keep class com.intellij.openapi.util.text.StringHash { *; }

# for gradle plugin and other server tools
-keep class com.intellij.openapi.util.io.ZipFileCache { public *; }

# for j2k
-keep class com.intellij.codeInsight.NullableNotNullManager { public protected *; }

-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

-keepclassmembers class * {
    ** toString();
    ** hashCode();
    void start();
    void stop();
    void dispose();
}

-keepclassmembers class org.jetbrains.org.objectweb.asm.Opcodes {
    *** ASM5;
}

-keepclassmembers class org.jetbrains.org.objectweb.asm.ClassReader {
    *** SKIP_CODE;
    *** SKIP_DEBUG;
    *** SKIP_FRAMES;
}