From fa845c3437bc4a1e996980b34ae80ff47b17f7c7 Mon Sep 17 00:00:00 2001 From: Horis <8674809+821938089@users.noreply.github.com> Date: Tue, 8 Apr 2025 10:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/proguard-rules.pro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 9396d1dbb..0a8616c0a 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -41,9 +41,6 @@ # 避免混淆泛型 -keepattributes Signature -# 抛出异常时保留代码行号 --keepattributes SourceFile,LineNumberTable - # 指定混淆是采用的算法,后面的参数是一个过滤器 # 这个过滤器是谷歌推荐的算法,一般不做更改 -optimizations !code/simplification/cast,!field/*,!class/merging/* @@ -136,6 +133,11 @@ cn.hutool.core.util.**{*;} *** mNavButtonView; } +# JsoupXpath +-keep,allowobfuscation class * implements org.seimicrawler.xpath.core.AxisSelector{*;} +-keep,allowobfuscation class * implements org.seimicrawler.xpath.core.NodeTest{*;} +-keep,allowobfuscation class * implements org.seimicrawler.xpath.core.Function{*;} + ## JSOUP -keep class org.jsoup.**{*;} -dontwarn org.jspecify.annotations.NullMarked