diff --git a/proguard.flags b/proguard.flags index d1c97f36da5..4ac544a7e47 100644 --- a/proguard.flags +++ b/proguard.flags @@ -6,7 +6,10 @@ -keepattributes Exceptions # Keep all Fragments in this package, which are used by reflection. --keep public class com.android.settings*.** extends androidx.fragment.app.Fragment +# TODO(b/373579455): Evaluate if needs to be kept. +-keep public class com.android.settings*.** extends androidx.fragment.app.Fragment { + void (); +} # Keep all preference controllers needed by slice and DashboardFragment. -keep class * extends com.android.settings.core.BasePreferenceController { @@ -49,7 +52,10 @@ public static ** SEARCH_INDEX_DATA_PROVIDER; public static ** SUMMARY_PROVIDER_FACTORY; } --keep class androidx.core.app.CoreComponentFactory +# TODO(b/373579455): Evaluate if needs to be kept. +-keep class androidx.core.app.CoreComponentFactory { + void (); +} # Keep classes that implements CustomSliceable, which are used by reflection. -keepclasseswithmembers class * implements com.android.settings.slices.CustomSliceable {