-
Notifications
You must be signed in to change notification settings - Fork 4
/
proguard-rules-common.pro
33 lines (24 loc) · 1.24 KB
/
proguard-rules-common.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
# Keep classes that are loaded via Java ServiceLoader (reflection)
-keep class com.nextfaze.devfun.core.DevFunModule
-keep class com.nextfaze.devfun.generated.DevFunGenerated
-keep class com.nextfaze.devfun.** extends com.nextfaze.devfun.core.DevFunModule
-keep class com.nextfaze.devfun.** extends com.nextfaze.devfun.generated.DevFunGenerated
# Don't rename KObject INSTANCE field
-keepclassmembernames class com.nextfaze.devfun.** {
public static final ** INSTANCE;
}
# Keep @Constructable types and their constructor
-keep class com.nextfaze.devfun.inject.Constructable
-keep @com.nextfaze.devfun.inject.Constructable class com.nextfaze.devfun.** {
<init>(...);
}
# Keep metadata information for annotation introspection (i.e. for @Constructable)
-keep class kotlin.Metadata { *; }
# Kotlin class `kotlin.Function0`.toString() fails as it uses BuiltInsLoaderImpl (loaded by ServiceLoader)
#
# Keep Kotlin reflect builtins names and classes loaded by ServiceLoader
-keepnames class kotlin.reflect.jvm.internal.impl.builtins.**
-keep class kotlin.reflect.jvm.internal.impl.builtins.** extends kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader
-keepclassmembers enum kotlin.reflect.jvm.internal.impl.builtins.** {
public static **[] values();
}