当前位置: 首页 > 工具软件 > xBus > 使用案例 >

RxBus(RxBus)

倪鸿禧
2023-12-01

使用

参考库文档或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();
}
 类似资料:

相关阅读

相关文章

相关问答