Fix proguard.flags
Daisuke Miyakawa [Wed, 25 Apr 2012 00:06:26 +0000 (17:06 -0700)]
Current configuration will keep all the classes, which isn't expected.

Also, use -verbose as Contacts is already doing.

Change-Id: I55ad402c84e99f17e4ceab730cb3818e7d8d98ac

proguard.flags
src/com/android/phone/AnimationUtils.java

index dabcd8c..c5f4c72 100644 (file)
@@ -1,4 +1,6 @@
 # Keep names that are used only by animation framework.
--keep class ** {
-  *** *ForAnimator(...);
+-keepclasseswithmembers class com.android.phone.AnimationUtils$CrossFadeDrawable {
+  *** setCrossFadeAlpha(...);
 }
+
+-verbose
\ No newline at end of file
index b8a64ed..28141e4 100644 (file)
@@ -155,14 +155,18 @@ public class AnimationUtils {
 
         public CrossFadeDrawable(Drawable[] layers) {
             super(layers);
-            mAnimator = ObjectAnimator.ofInt(this, "crossFadeAlphaForAnimator", 0xff, 0);
+            mAnimator = ObjectAnimator.ofInt(this, "crossFadeAlpha", 0xff, 0);
         }
 
         private int mCrossFadeAlpha;
 
-        /** This will be used from ObjectAnimator. */
+        /**
+         * This will be used from ObjectAnimator.
+         * Note: this method is protected by proguard.flags so that it won't be removed
+         * automatically.
+         */
         @SuppressWarnings("unused")
-        public void setCrossFadeAlphaForAnimator(int alpha) {
+        public void setCrossFadeAlpha(int alpha) {
             mCrossFadeAlpha = alpha;
             invalidateSelf();
         }