<NME> proguard-rules.txt
<BEF> # 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 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>;
    private void writeObject(java.io.ObjectOutputStream);
    private void readObject(java.io.ObjectInputStream);
    java.lang.Object writeReplace();
    java.lang.Object readResolve();
}

<MSG> Merge pull request #251 from dlew/dlew/proguard-protection

Ensure we keep all R.raw resources
<DFF> @@ -1,3 +1,6 @@
+# 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

Merge pull request #251 from dlew/dlew/proguard-protection