RxBus(RxBus)

使用

参考库文档或Util。

混淆

#【RxBus】
-dontwarn com.zsp.utilone.rxbus.**
-keep class com.zsp.utilone.rxbus.** {*;}
-keep class com.zsp.utilone.rxbus.finder.** {*;}
-keep class com.zsp.utilone.rxbus.thread.EventThread {*;}
-keepattributes *Annotation
-keepclassmembers class ** {
    @com.zsp.utilone.rxbus.annotation.Subscribe public *;
    @com.zsp.utilone.rxbus.annotation.Produce public *;
    public void onEvent(**);
    public void onEventMainThread(**);
}

#【Serializable】
# Explicitly preserve all serialization members.
# The Serializable interface is only a marker interface, so it wouldn't save them.
-keep public 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 <fields>;
   !private <methods>;
   private void writeObject(java.io.ObjectOutputStream);
   private void readObject(java.io.ObjectInputStream);
   java.lang.Object writeReplace();
   java.lang.Object readResolve();
}

你可能感兴趣的:(android,第三方)