2015-07-25 06:56:33 +08:00
|
|
|
-keep,allowshrinking,allowoptimization class com.android.launcher3.** {
|
|
|
|
*;
|
|
|
|
}
|
|
|
|
|
2017-04-27 13:34:49 +08:00
|
|
|
-keep class com.android.launcher3.graphics.ShadowDrawable {
|
|
|
|
public <init>(...);
|
|
|
|
}
|
|
|
|
|
2017-09-28 03:34:47 +08: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-10 04:08:56 +08: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-15 06:21:45 +08:00
|
|
|
-keep class androidx.recyclerview.widget.RecyclerView { *; }
|
2016-11-10 04:08:56 +08:00
|
|
|
|
2019-12-18 07:54:32 +08:00
|
|
|
# Fragments
|
|
|
|
-keep class ** extends androidx.fragment.app.Fragment {
|
|
|
|
public <init>(...);
|
|
|
|
}
|
2018-11-08 02:08:24 +08:00
|
|
|
-keep class ** extends android.app.Fragment {
|
2018-01-25 07:38:25 +08:00
|
|
|
public <init>(...);
|
|
|
|
}
|
|
|
|
|
2018-06-28 06:47:49 +08:00
|
|
|
## Prevent obfuscating various overridable objects
|
|
|
|
-keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
|
2018-05-31 08:35:24 +08:00
|
|
|
public <init>(...);
|
|
|
|
}
|
|
|
|
|
2016-11-23 04:54:32 +08:00
|
|
|
-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
|
|
|
|
*;
|
|
|
|
}
|
2017-05-18 04:18:54 +08:00
|
|
|
-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
|
|
|
|
*;
|
|
|
|
}
|
2017-12-20 05:17:57 +08:00
|
|
|
|
2018-05-23 02:20:16 +08:00
|
|
|
# Discovery bounce animation
|
|
|
|
-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
|
|
|
|
public void setProgress(float);
|
|
|
|
public float getProgress();
|
|
|
|
}
|
|
|
|
|
2017-12-20 05:17:57 +08:00
|
|
|
# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
|
|
|
|
-dontwarn android.app.**
|
|
|
|
-dontwarn android.view.**
|
|
|
|
-dontwarn android.os.**
|
2019-12-18 07:54:32 +08:00
|
|
|
-dontwarn android.graphics.**
|
2020-02-10 22:48:03 +08:00
|
|
|
|
|
|
|
# Ignore warnings for hidden utility classes referenced from the shared lib
|
2020-02-25 07:35:49 +08:00
|
|
|
-dontwarn com.android.internal.util.**
|
|
|
|
|
|
|
|
################ Do not optimize recents lib #############
|
|
|
|
-keep class com.android.systemui.** {
|
|
|
|
*;
|
|
|
|
}
|
|
|
|
|
|
|
|
-keep class com.android.quickstep.** {
|
|
|
|
*;
|
|
|
|
}
|