Repository navigation
Expand file tree
/
Copy pathproguard.pro
More file actions
49 lines (37 loc) · 1.74 KB
/
Copy pathproguard.pro
File metadata and controls
49 lines (37 loc) · 1.74 KB
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
# The rules from AOSP are located in proguard.flags file, we can just maintain AutoCat related rules here.
# Optimization options.
-allowaccessmodification
-dontusemixedcaseclassnames
-allowaccessmodification
-keepattributes InnerClasses, *Annotation*, Signature, SourceFile, LineNumberTable
# Remove some Kotlin overhead
-processkotlinnullchecks remove
# Common rules.
-keep class android.window.** { *; }
-keep class android.view.** { *; }
-keepclassmembers class * implements android.os.Parcelable {
public static final ** CREATOR;
}
# AutoCat specific rules.
-keep class app.lawnchair.AutoCatProto$* { *; }
-keep class app.lawnchair.AutoCatApp { *; }
-keep class app.lawnchair.AutoCatLauncher { *; }
-keep class app.lawnchair.compatlib.** { *; }
-keep class android.view.** { *; }
-keepclassmembers class app.lawnchair.compatlib.** implements android.app.ActivityOptions$OnAnimationStartedListener {
public void onAnimationStarted(...);
}
-keepclassmembers class app.lawnchair.compatlib.** implements android.app.ActivityOptions$OnAnimationFinishedListener {
public void onAnimationFinished(...);
}
-keep,allowshrinking,allowoptimization class com.google.protobuf.Timestamp { *; }
-keep class * extends com.google.protobuf.GeneratedMessageLite { *; }
# We intentionally remove it to replace Smartspacer's widget popup with our own Launcher3 popup
-dontwarn com.skydoves.balloon.*
# This shouldn't concern us much
-dontwarn androidx.window.extensions.**
-dontwarn androidx.window.sidecar.**
# LiteRT-LM calls into its Kotlin classes from native code and ships no keep rules
-keep class com.google.ai.edge.litertlm.** { *; }
# Shizuku creates the shell service by reflection from its class name
-keep class app.lawnchair.shizuku.UserService { <init>(...); }