forked from thewca/tnoodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proguard-rules.pro
55 lines (42 loc) · 1.72 KB
/
proguard-rules.pro
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
-allowaccessmodification
-dontskipnonpubliclibraryclassmembers
# FIXME...? Routes currently don't work in the browser when code gets obfuscated or optimised
-dontobfuscate
-dontoptimize
-dontnote kotlinx.serialization.AnnotationsKt
# cf. https://github.com/ktorio/ktor-samples/tree/master/other/proguard
-keep class org.worldcubeassociation.tnoodle.server.** { *; }
-keep class io.ktor.server.netty.Netty { *; }
-keep class kotlin.reflect.jvm.internal.** { *; }
-keep class kotlin.text.RegexOption { *; }
# CSS rendering uses reflection black magic, so static bytecode optimisers need a little help
-keep class org.apache.batik.css.parser.** { *; }
-keep class org.apache.batik.dom.** { *; }
-keep class com.itextpdf.text.ImgTemplate { *; }
-keep class ch.qos.logback.core.** { *; }
-keep class com.sun.jna.** { *; }
-keep class dorkbox.jna.** { *; }
-keep class dorkbox.systemTray.** { *; }
-keep class sun.awt.windows.** { *; }
-keep class sun.lwawt.macosx.** { *; }
-keep class sun.awt.X11.** { *; }
-keep class sun.awt.SunToolkit { *; }
-keep,includedescriptorclasses class kotlinx.serialization.json.**$$serializer { *; }
-keep,includedescriptorclasses class org.worldcubeassociation.tnoodle.server.webscrambles.**$$serializer { *; }
-keepattributes *Annotation*
-keepattributes InnerClasses
-keepclasseswithmembers class org.worldcubeassociation.tnoodle.server.webscrambles.** {
kotlinx.serialization.KSerializer serializer(...);
}
-keepclassmembers class org.worldcubeassociation.tnoodle.server.webscrambles.** {
*** Companion;
}
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembernames enum * {
<fields>;
public static **[] values();
public static ** valueOf(java.lang.String);
}
-dontwarn