2015-07-25 06:56:33 +08:00
|
|
|
-keep,allowshrinking,allowoptimization class com.android.launcher3.** {
|
|
|
|
*;
|
|
|
|
}
|
|
|
|
|
2016-01-22 03:50:02 +08:00
|
|
|
# Proguard will strip new callbacks in LauncherApps.Callback from
|
|
|
|
# WrappedCallback if compiled against an older SDK. Don't let this happen.
|
|
|
|
-keep class com.android.launcher3.compat.** {
|
|
|
|
*;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2018-06-28 06:47:49 +08:00
|
|
|
# Preference fragments
|
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.**
|
2018-11-16 05:37:57 +08:00
|
|
|
-dontwarn android.graphics.**
|