Error on using proguard with Android Facebook sdk 3.0

前端 未结 4 1539
清酒与你
清酒与你 2020-12-17 14:22

Warning: I removed a lot of \"old text\" to keep the question more clean. Just check the history if needed.

I\'m using proguard to both

4条回答
  •  渐次进展
    2020-12-17 15:17

    if you want to proguard Facebook, the config below is working for me

    #modify for Facebook
    -keepattributes Signature
    -keep class com.facebook.model.** { *; }
    
    -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 ;
        private void writeObject(java.io.ObjectOutputStream);
        private void readObject(java.io.ObjectInputStream);
        java.lang.Object writeReplace();
        java.lang.Object readResolve();
    }
    

提交回复
热议问题