-
Notifications
You must be signed in to change notification settings - Fork 2
/
rules.pro
34 lines (27 loc) · 1.1 KB
/
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
# R8/ProGuard rules
# https://www.guardsquare.com/manual/configuration/examples#library
-target 1.8
-verbose
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-allowaccessmodification
-repackageclasses 'kt.fluxo.f'
-adaptresourcefilenames **.properties,**.gif,**.jpg,**.png,**.webp
-adaptresourcefilecontents **.properties,META-INF/MANIFEST.MF
-keep,allowoptimization,includedescriptorclasses public class * {
public protected *;
}
-keepparameternames
-renamesourcefileattribute SourceFile
-keepattributes Signature,Exceptions,*Annotation*,
InnerClasses,PermittedSubclasses,EnclosingMethod,
Deprecated,SourceFile,LineNumberTable
-keepclassmembers,allowoptimization enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
# Optimization for Android MIN_SDK versions
# https://jakewharton.com/r8-optimization-value-assumption/
# https://www.guardsquare.com/en/products/proguard/manual/examples#androidsdk
-assumenosideeffects class android.os.Build$VERSION { int SDK_INT return 15..2147483647; }
-keep class kotlin.Metadata