From e5f77b626ee7d7d04315ddf9a931bc61b9e99a2c Mon Sep 17 00:00:00 2001 From: lzl <1239365383@qq.com> Date: Sat, 17 Jan 2026 00:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=B7=E6=B7=86log=E4=B8=8D=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/proguard-rules.pro | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 88b357a8..62b9868e 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -16,6 +16,18 @@ # 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 cn.smssdk.**{*;}