Bug 1262273 - Keep View accessors from getting Proguarded out. r=mcomella
authorNick Alexander <nalexander@mozilla.com>
Wed, 06 Apr 2016 09:52:32 -0700
changeset 292123 28c2a5b261c112c4c08f3e3ce53d8facbe51a44a
parent 292122 99af9f32f1ca84ed3a7bb4345d5333ae40ce65b6
child 292124 f60c206eb2841ef605421eb08b9380e940460972
push id74762
push usercbook@mozilla.com
push dateThu, 07 Apr 2016 09:56:20 +0000
treeherdermozilla-inbound@772253c53374 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1262273
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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