From 0311303f1a80b3bdf784b80444107234c41badef Mon Sep 17 00:00:00 2001 From: Nick Alexander Date: Wed, 6 Apr 2016 10:40:44 -0700 Subject: [PATCH] Bug 1262273 - Keep support Fragment accessors from getting Proguarded out. r=mcomella MozReview-Commit-ID: 4jY06GjGgwN --HG-- extra : rebase_source : ad77a340de018ae18a2d0ace075b50d44a2ef848 extra : histedit_source : a7a75c45f75e1d1af4ac9a6ab328917737156739 --- mobile/android/config/proguard/proguard.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mobile/android/config/proguard/proguard.cfg b/mobile/android/config/proguard/proguard.cfg index b99cf054bfe4..a61b26f364d7 100644 --- a/mobile/android/config/proguard/proguard.cfg +++ b/mobile/android/config/proguard/proguard.cfg @@ -43,6 +43,13 @@ *** get*(); } +# Keep setters in support Fragment so that Robocop tests work, +# specifically testBrowserSearchVisibility. +-keepclassmembers public class * extends android.support.v4.app.Fragment { + void set*(***); + *** get*(); +} + # Preserve enums. (For awful reasons, the runtime accesses them using introspection...) -keepclassmembers enum * { *;