From fb4992111b11224341c4fba6bbd795370571008e Mon Sep 17 00:00:00 2001 From: Mill Chen Date: Mon, 17 Sep 2018 22:06:05 +0800 Subject: [PATCH] Add a rule to keep classes that implements CustomSliceable Bug: 115862774 Test: visual, SliceViewer Change-Id: Iff52a61423ef6822430a1f269a897b46d46f5253 --- proguard.flags | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proguard.flags b/proguard.flags index 298058d3b34..82e8e58d92b 100644 --- a/proguard.flags +++ b/proguard.flags @@ -56,3 +56,8 @@ public static ** SUMMARY_PROVIDER_FACTORY; } -keep class androidx.core.app.CoreComponentFactory + +# Keep classes that implements CustomSliceable, which are used by reflection. +-keepclasseswithmembers class * implements com.android.settings.slices.CustomSliceable { + public (android.content.Context); +} \ No newline at end of file