Bug 1262273 - Keep View accessors from getting Proguarded out. r?mcomella draft
authorNick Alexander <nalexander@mozilla.com>
Wed, 06 Apr 2016 09:52:32 -0700
changeset 348178 e7f37d06786a5727820e2c0bba5d247f9754067f
parent 348177 b46a59f95a0bb3d93e040d25bbb82901fc412f6b
child 348179 e0c57ffbc96e9fb6b98c7e1002d9f323d8bb5336
push id14768
push usernalexander@mozilla.com
push dateWed, 06 Apr 2016 20:29:14 +0000
reviewersmcomella
bugs1262273
milestone48.0a1
Bug 1262273 - Keep View accessors from getting Proguarded out. r?mcomella MozReview-Commit-ID: 4yLlmRImBpA
mobile/android/config/proguard/proguard.cfg
--- a/mobile/android/config/proguard/proguard.cfg
+++ b/mobile/android/config/proguard/proguard.cfg
@@ -29,16 +29,25 @@
 -keepclasseswithmembers class * {
     public <init>(android.content.Context, android.util.AttributeSet, int);
 }
 
 -keepclassmembers class * extends android.app.Activity {
    public void *(android.view.View);
 }
 
+
+# Keep setters in Views so that animations can still work.
+# See http://proguard.sourceforge.net/manual/examples.html#beans
+# From tools/proguard/proguard-android.txt.
+-keepclassmembers public class * extends android.view.View {
+   void set*(***);
+   *** get*();
+}
+
 # Preserve enums. (For awful reasons, the runtime accesses them using introspection...)
 -keepclassmembers enum * {
      *;
 }
 
 #
 # Rules from ProGuard's Android example:
 # http://proguard.sourceforge.net/manual/examples.html#androidapplication