混淆log不打印。
This commit is contained in:
12
app/proguard-rules.pro
vendored
12
app/proguard-rules.pro
vendored
@@ -16,6 +16,18 @@
|
|||||||
# public *;
|
# public *;
|
||||||
#}
|
#}
|
||||||
|
|
||||||
|
# 1. 忽略 Log 相关的混淆警告,避免编译时报无关错误
|
||||||
|
-dontwarn android.util.Log
|
||||||
|
|
||||||
|
# 2. 移除 Log 类的所有打印方法(v/d/i/w/e),无副作用可安全删除
|
||||||
|
-assumenosideeffects class android.util.Log {
|
||||||
|
public static int v(...);
|
||||||
|
public static int d(...);
|
||||||
|
public static int i(...);
|
||||||
|
public static int w(...);
|
||||||
|
public static int e(...);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
-keep class com.mob.**{*;}
|
-keep class com.mob.**{*;}
|
||||||
-keep class cn.smssdk.**{*;}
|
-keep class cn.smssdk.**{*;}
|
||||||
|
|||||||
Reference in New Issue
Block a user