补充混淆规则

This commit is contained in:
2026-07-14 11:16:42 +08:00
parent a25e4a093d
commit 0e8af36c87
4 changed files with 218 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# ============================================================
# easysocket 库模块 consumer-rules.pro传递给 App
# 库实际包名com.easysocketnamespace
# 要求:完全不混淆
# ============================================================
-keep class com.easysocket.** { *; }
-keepclassmembers class com.easysocket.** {
public <init>(...);
<fields>;
<methods>;
}
-keepattributes Signature,*Annotation*,InnerClasses,EnclosingMethod,RuntimeVisibleAnnotations
-dontwarn com.easysocket.**

13
easysocket/proguard-rules.pro vendored Normal file
View File

@@ -0,0 +1,13 @@
# ============================================================
# easysocket 自身的混淆规则(仅当本模块 minifyEnabled=true 时生效,当前默认 false
# 实际包名com.easysocket
# ============================================================
-keep class com.easysocket.** { *; }
-keepclassmembers class com.easysocket.** {
public <init>(...);
<fields>;
<methods>;
}
-keepattributes Signature,*Annotation*,InnerClasses,EnclosingMethod,RuntimeVisibleAnnotations,SourceFile,LineNumberTable
-dontwarn com.easysocket.**