Co-authored-by: Bruno Martins <[email protected]> Co-authored-by: Luca Stefani <[email protected]> Co-authored-by: programminghoch10 <[email protected]> Co-authored-by: LuK1337 <[email protected]> Change-Id: I10c35407820373a1d5f84b237ac449398e076dcd
81 lines
3.0 KiB
Plaintext
81 lines
3.0 KiB
Plaintext
# Improves inlining by allowing ProGuard to make fields/methods accessed
|
|
# by the inlined method visible.
|
|
-allowaccessmodification
|
|
|
|
# Selectively disable obfuscation for key Launcher subpackages, making
|
|
# unretraced stack frames slightly more actionable.
|
|
-keep,allowshrinking,allowoptimization,allowaccessmodification class com.android.** {*;}
|
|
-keep,allowshrinking,allowoptimization class com.android.systemui.shared.** {*;}
|
|
-keepclasseswithmembernames class com.android.systemui.shared.** {*;}
|
|
-keep,allowshrinking,allowoptimization class com.android.quickstep.** {*;}
|
|
-keepclasseswithmembernames class com.android.quickstep.** {*;}
|
|
-keep class android.gui.BoxShadowSettings
|
|
-keep class android.gui.BorderSettings
|
|
# 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.
|
|
-keep class androidx.recyclerview.widget.RecyclerView { *; }
|
|
|
|
# Fragments
|
|
-keep class ** extends androidx.fragment.app.Fragment {
|
|
public <init>(...);
|
|
}
|
|
-keep class ** extends android.app.Fragment {
|
|
public <init>(...);
|
|
}
|
|
|
|
# Rules for internal proto classes
|
|
# Prevent optimization or access modification of any referenced code that may
|
|
# conflict with code in the bootclasspath.
|
|
# TODO(b/222468116): Resolve such collisions in the build system.
|
|
-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {*;}
|
|
-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {*;}
|
|
-keep interface com.android.internal.protolog.common.IProtoLogGroup { *; }
|
|
|
|
# Do not optimize animation methods that are using reflection
|
|
-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
|
|
public void setProgress(float);
|
|
public float getProgress();
|
|
}
|
|
|
|
# The Jetpack animation-tooling-internal library is internal and
|
|
# unavailable to published libraries.
|
|
-dontwarn androidx.compose.animation.tooling.**
|
|
|
|
# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
|
|
-dontwarn android.app.**
|
|
-dontwarn android.graphics.**
|
|
-dontwarn android.net.**
|
|
-dontwarn android.os.**
|
|
-dontwarn android.view.**
|
|
-dontwarn android.window.**
|
|
|
|
# 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.**
|
|
-dontwarn org.apache.http.**
|
|
|
|
-keep class com.android.launcher3.lineage.trust.** {
|
|
*;
|
|
}
|
|
|
|
# Explicitly keep these for Shark Heap Analysis in tests
|
|
-keep class com.android.launcher3.util.BaseContext {
|
|
*;
|
|
}
|
|
-keep class com.android.launcher3.util.LifecycleRegistryWrapper {
|
|
*;
|
|
}
|
|
-keep class androidx.lifecycle.LifecycleRegistry {
|
|
*;
|
|
}
|
|
|
|
# Keep all classes annotated with @AppFunctionSerializable and their members.
|
|
# These classes are serialized and their structure must be preserved.
|
|
-keep @androidx.appfunctions.AppFunctionSerializable class * {
|
|
<fields>;
|
|
<init>(...);
|
|
}
|