PersistentCookieJar – is an persistent CookieJar implementation for OkHttp 3 based on Android SharedPreferences.
ProGuard rules for PersistentCookieJar
ProGuard detects and removes unused classes, fields and and attributes. ProGuard renames classes and class members that are not entry points. Specify the following ProGuard rules to fix errors and force ProGuard to keep certain code.
# PersistentCookieJar -dontwarn com.franmontiel.persistentcookiejar.** -keep class com.franmontiel.persistentcookiejar.** -keepclassmembers class * implements java.io.Serializable { static final long serialVersionUID; private static final java.io.ObjectStreamField[] serialPersistentFields; !static !transient; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve(); }
For more information about PersistentCookieJar please see the website.