From 8b7f5f1820ccdeab6814f25ee9b5ddcfbabf663f Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Wed, 29 Jan 2025 08:44:28 +0000 Subject: [PATCH] Add keepclasseswithmembernames to all of the package names Bug: 364338963 Flag: NONE proguard.flags update Test: checked proguard_dictionary proguard related files under soong/.intermediates/vendor/unbundled_google/packages/NexusLauncher/NexusLauncherRelease/android_common NexusLauncherRelease.apk size unchanged 15M -> 15M Change-Id: I665c44750c6f0d469479838f0c0766385a9b3b89 --- proguard.flags | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/proguard.flags b/proguard.flags index da00c00b9b..c0a0042e81 100644 --- a/proguard.flags +++ b/proguard.flags @@ -1,6 +1,12 @@ --keep,allowshrinking,allowoptimization class com.android.launcher3.** { - *; -} + +-keep,allowshrinking,allowoptimization class com.android.launcher3.** {*;} +-keepclasseswithmembernames class com.android.launcher3.** {*;} + +-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.** {*;} # The support library contains references to newer platform versions. # Don't warn about those in case this app is linking against an older @@ -49,14 +55,6 @@ # Ignore warnings for hidden utility classes referenced from the shared lib -dontwarn com.android.internal.util.** -################ Do not optimize recents lib ############# --keep class com.android.systemui.shared.** { - *; -} - --keep class com.android.quickstep.** { - *; -} -keep class com.android.internal.protolog.** { *;