<NME> proguard-rules.txt
<BEF> # All the resources are retrieved via reflection, so we need to make sure we keep them
-keep class net.danlew.android.joda.R$raw { *; }

# These aren't necessary if including joda-convert, but
# most people aren't, so it's helpful to include it.
-dontwarn org.joda.convert.FromString
-dontwarn org.joda.convert.ToString

# Joda classes use the writeObject special method for Serializable, so
# if it's stripped, we'll run into NotSerializableExceptions.
# https://www.guardsquare.com/en/products/proguard/manual/examples#serializable
-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();
}

<MSG> Merge pull request #269 from TheNodi/proguard-scope

Scope ProGuard rules to library
<DFF> @@ -9,8 +9,8 @@
 # Joda classes use the writeObject special method for Serializable, so
 # if it's stripped, we'll run into NotSerializableExceptions.
 # https://www.guardsquare.com/en/products/proguard/manual/examples#serializable
--keepnames class * implements java.io.Serializable
--keepclassmembers class * implements java.io.Serializable {
+-keepnames class org.joda.** implements java.io.Serializable
+-keepclassmembers class org.joda.** implements java.io.Serializable {
     static final long serialVersionUID;
     private static final java.io.ObjectStreamField[] serialPersistentFields;
     !static !transient <fields>;

Merge pull request #269 from TheNodi/proguard-scope