OSDN Git Service

CherryPick aef49b24 from master to r12. do not merge.
authorTor Norbye <tnorbye@google.com>
Fri, 10 Jun 2011 20:58:35 +0000 (13:58 -0700)
committerXavier Ducrohet <xav@android.com>
Fri, 10 Jun 2011 21:28:50 +0000 (14:28 -0700)
Fix proguard template to avoid shrinking XML-only references

See 16384: ProGuard template generated by the ADT is flawed

Change-Id: Ibf4510cc4ad9aafec2712326053e80d80599add4

files/proguard.cfg

index 12dd039..b1cdf17 100644 (file)
     native <methods>;
 }
 
--keepclasseswithmembernames class * {
+-keepclasseswithmembers class * {
     public <init>(android.content.Context, android.util.AttributeSet);
 }
 
--keepclasseswithmembernames class * {
+-keepclasseswithmembers class * {
     public <init>(android.content.Context, android.util.AttributeSet, int);
 }
 
+-keepclassmembers class * extends android.app.Activity {
+   public void *(android.view.View);
+}
+
 -keepclassmembers enum * {
     public static **[] values();
     public static ** valueOf(java.lang.String);