From e47bcfb8ab02616f553f8e146d081856da2af1d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E5=B0=8F=E6=B1=9F?= <461355754@qq.com> Date: Sat, 6 Sep 2025 14:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B7=B7=E6=B7=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/proguard-rules.pro | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 5004780..65d80d5 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -914,3 +914,21 @@ public static java.lang.String TABLENAME; -keep class com.petterp.floatingx.** { *; } -keep class com.petterp.floatingx.* { *; } -dontwarn com.petterp.floatingx.** + + +# 保持MqttBean类不被混淆 +-keep class com.xscm.moduleutil.event.MqttBean** {*;} +-keepclassmembers class com.xscm.moduleutil.event.MqttBean** { + *; +} + +-keep class com.xscm.moduleutil.bean.XLHBean** {*;} +-keepclassmembers class com.xscm.moduleutil.bean.XLHBean** { + *; +} + +# 保持EventBus相关类不被混淆 +-keepclassmembers class * { + @org.greenrobot.eventbus.Subscribe ; +} +-keep enum org.greenrobot.eventbus.ThreadMode { *; }