2015-07-24 22:56:33 +00:00
|
|
|
-keep,allowshrinking,allowoptimization class com.android.launcher3.** {
|
|
|
|
*;
|
|
|
|
}
|
|
|
|
|
2017-09-27 19:34:47 +00:00
|
|
|
# The support library contains references to newer platform versions.
|
|
|
|
# Don't warn about those in case this app is linking against an older
|
|
|
|
# platform version. We know about them, and they are safe.
|
|
|
|
-dontwarn android.support.**
|
|
|
|
|
2016-11-09 20:08:56 +00:00
|
|
|
# Proguard will strip methods required for talkback to properly scroll to
|
|
|
|
# next row when focus is on the last item of last row when using a RecyclerView
|
|
|
|
# Keep optimized and shrunk proguard to prevent issues like this when using
|
|
|
|
# support jar.
|
2018-08-14 22:21:45 +00:00
|
|
|
-keep class androidx.recyclerview.widget.RecyclerView { *; }
|
2016-11-09 20:08:56 +00:00
|
|
|
|
2019-12-17 23:54:32 +00:00
|
|
|
# Fragments
|
|
|
|
-keep class ** extends androidx.fragment.app.Fragment {
|
|
|
|
public <init>(...);
|
|
|
|
}
|
2018-11-07 18:08:24 +00:00
|
|
|
-keep class ** extends android.app.Fragment {
|
2018-01-24 23:38:25 +00:00
|
|
|
public <init>(...);
|
|
|
|
}
|
|
|
|
|
2018-06-27 22:47:49 +00:00
|
|
|
## Prevent obfuscating various overridable objects
|
|
|
|
-keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
|
2018-05-31 00:35:24 +00:00
|
|
|
public <init>(...);
|
|
|
|
}
|
|
|
|
|
2016-11-22 20:54:32 +00:00
|
|
|
-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
|
|
|
|
*;
|
|
|
|
}
|
2017-05-17 20:18:54 +00:00
|
|
|
-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
|
|
|
|
*;
|
|
|
|
}
|
2017-12-19 21:17:57 +00:00
|
|
|
|
2018-05-22 18:20:16 +00:00
|
|
|
# Discovery bounce animation
|
|
|
|
-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
|
|
|
|
public void setProgress(float);
|
|
|
|
public float getProgress();
|
|
|
|
}
|
|
|
|
|
2017-12-19 21:17:57 +00:00
|
|
|
# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
|
|
|
|
-dontwarn android.app.**
|
2019-12-17 23:54:32 +00:00
|
|
|
-dontwarn android.graphics.**
|
2020-11-30 21:32:22 +00:00
|
|
|
-dontwarn android.os.**
|
|
|
|
-dontwarn android.view.**
|
|
|
|
-dontwarn android.window.**
|
2020-02-10 14:48:03 +00:00
|
|
|
|
|
|
|
# Ignore warnings for hidden utility classes referenced from the shared lib
|
2020-02-24 23:35:49 +00:00
|
|
|
-dontwarn com.android.internal.util.**
|
|
|
|
|
|
|
|
################ Do not optimize recents lib #############
|
|
|
|
-keep class com.android.systemui.** {
|
|
|
|
*;
|
|
|
|
}
|
|
|
|
|
|
|
|
-keep class com.android.quickstep.** {
|
|
|
|
*;
|
|
|
|
}
|