am ddefdef5: Make ProGuard keep necessary members for serializable classes

Merge commit 'ddefdef5bc560d95f799993759c22ddc02e61b49' into gingerbread-plus-aosp

* commit 'ddefdef5bc560d95f799993759c22ddc02e61b49':
  Make ProGuard keep necessary members for serializable classes
This commit is contained in:
Hung-ying Tyan 2010-08-10 17:50:28 -07:00 committed by Android Git Automerger
commit d81e9f88f4
1 changed files with 13 additions and 0 deletions

View File

@ -44,6 +44,19 @@
@com.google.common.annotations.VisibleForTesting *;
}
# Keep serializable classes and necessary members for serializable classes
# Copied from the ProGuard manual at http://proguard.sourceforge.net.
-keepnames class * implements java.io.Serializable
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
!static !transient <fields>;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
# Please specify classes to be kept explicitly in your package's configuration.
# -keep class * extends android.app.Activity
# -keep class * extends android.view.View