Commit b7453b04 authored by p x's avatar p x
Browse files

添加netty混淆规则

parent 20b7afe5
...@@ -21,10 +21,12 @@ android { ...@@ -21,10 +21,12 @@ android {
buildTypes { buildTypes {
release { release {
isMinifyEnabled = false isMinifyEnabled = false
proguardFiles( isShrinkResources = false
consumerProguardFiles("proguard-rules.pro")
/*proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"), getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro" "proguard-rules.pro"
) )*/
} }
} }
compileOptions { compileOptions {
......
...@@ -19,13 +19,16 @@ ...@@ -19,13 +19,16 @@
# If you keep the line number information, uncomment this to # If you keep the line number information, uncomment this to
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-renamesourcefileattribute SourceFile
# -- 解析Bean
-keep class com.cusc.adas.v2x.utils.**{*;}
-keep @interface com.cusc.adas.v2x.utils.Order.*
-keep @interface com.cusc.adas.v2x.utils.**{*;}
-keep class com.cusc.adas.v2x.events.**{*;}
-keep class com.cusc.adas.v2x.vo.**{*;}
-keep class com.cusc.adas.v2x.dto.**{*;}
# -------------------------- Netty 核心混淆规则 --------------------------
# -- 解析Bean
-keep class com.cusc.adas.v2x.**{*;}
# 保留 Netty 核心类
-keep class io.netty.** { *; }
-keepclasseswithmembers class io.netty.** {
*;
}
-keepnames class io.netty.** { *; }
-dontwarn io.netty.**
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment