Merge "Explicitly keep default constructor in rules without members" into main am: cfc4d29e89

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3438521

Change-Id: Ifbe6a637d95fda5346b93c8c86f175b9463ecde2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2025-01-29 22:42:06 -08:00
committed by Automerger Merge Worker

View File

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