-
Notifications
You must be signed in to change notification settings - Fork 12
/
consumer-rules.pro
45 lines (35 loc) · 1.46 KB
/
consumer-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
##---------------Begin: Attribouter-specific configuration --------
# For xml-specified drawable resources
-keep class me.jfenn.attribouter.R$*
-keepclassmembers class me.jfenn.attribouter.R$* {
public static <fields>;
}
# For wedge construction (from xml parser)
-keep class * extends me.jfenn.attribouter.wedges.Wedge
##---------------End: Attribouter-specific configuration ----------
##---------------Begin: proguard configuration for Ktor -------
-keep class io.ktor.** { *; }
-keep class kotlinx.coroutines.** { *; }
-dontwarn kotlinx.atomicfu.**
-dontwarn io.netty.**
-dontwarn com.typesafe.**
-dontwarn org.slf4j.**
# Coroutines: https://github.com/ktorio/ktor/issues/1354
-keepclassmembers class kotlinx.** {
volatile <fields>;
}
-keepclassmembers class io.ktor.** {
volatile <fields>;
}
##---------------End: proguard configuration for Ktor ---------
##---------------Begin: proguard configuration for gitrest -------
-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.SerializationKt
-keep,includedescriptorclasses class com.yourcompany.yourpackage.**$$serializer { *; } # <-- change package name to your app's
-keepclassmembers class me.jfenn.gitrest.** { # <-- change package name to your app's
*** Companion;
}
-keepclasseswithmembers class me.jfenn.gitrest.** { # <-- change package name to your app's
kotlinx.serialization.KSerializer serializer(...);
}
##---------------End: proguard configuration for gitrest ---------