From ab3ac72d5448d8c9cbc3070e5816309a42957f41 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Mon, 1 Sep 2025 08:04:36 +0800 Subject: [PATCH] =?UTF-8?q?RegexPPiUtils=20=E5=85=A5=E9=80=89=20APPUtils?= =?UTF-8?q?=20=E7=B1=BB=E5=BA=93=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mymessagemanager/build.gradle | 2 +- mymessagemanager/build.properties | 4 +-- .../mymessagemanager/utils/PhoneUtil.java | 12 +++---- .../mymessagemanager/utils/RegexPPiUtils.java | 32 ------------------- .../utils/SMSReceiveRuleUtil.java | 1 + 5 files changed, 10 insertions(+), 41 deletions(-) delete mode 100644 mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/RegexPPiUtils.java diff --git a/mymessagemanager/build.gradle b/mymessagemanager/build.gradle index ca1b9a7..d423b2c 100644 --- a/mymessagemanager/build.gradle +++ b/mymessagemanager/build.gradle @@ -46,7 +46,7 @@ android { dependencies { api fileTree(dir: 'libs', include: ['*.jar']) api 'cc.winboll.studio:libaes:15.9.3' - api 'cc.winboll.studio:libapputils:15.8.5' + api 'cc.winboll.studio:libapputils:15.8.6' api 'cc.winboll.studio:libappbase:15.9.5' api 'io.github.medyo:android-about-page:2.0.0' diff --git a/mymessagemanager/build.properties b/mymessagemanager/build.properties index 68eda2b..8aec0b6 100644 --- a/mymessagemanager/build.properties +++ b/mymessagemanager/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Sun Aug 31 06:13:45 CST 2025 +#Mon Sep 01 00:02:55 GMT 2025 stageCount=7 libraryProject= baseVersion=15.3 publishVersion=15.3.6 -buildCount=0 +buildCount=2 baseBetaVersion=15.3.7 diff --git a/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/PhoneUtil.java b/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/PhoneUtil.java index d36ce2c..e72fc73 100644 --- a/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/PhoneUtil.java +++ b/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/PhoneUtil.java @@ -11,19 +11,19 @@ import android.database.Cursor; import android.net.Uri; import android.provider.ContactsContract; import cc.winboll.studio.libappbase.LogUtils; +import cc.winboll.studio.libapputils.utils.RegexPPiUtils; import cc.winboll.studio.mymessagemanager.beans.PhoneBean; -import net.sourceforge.pinyin4j.PinyinHelper; -import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType; -import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; -import net.sourceforge.pinyin4j.format.HanyuPinyinToneType; -import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination; - import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; +import net.sourceforge.pinyin4j.PinyinHelper; +import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType; +import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; +import net.sourceforge.pinyin4j.format.HanyuPinyinToneType; +import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination; public class PhoneUtil { diff --git a/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/RegexPPiUtils.java b/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/RegexPPiUtils.java deleted file mode 100644 index 8e27dc3..0000000 --- a/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/RegexPPiUtils.java +++ /dev/null @@ -1,32 +0,0 @@ -package cc.winboll.studio.mymessagemanager.utils; - -/** - * @Author ZhanGSKen - * @Date 2024/12/09 19:00:21 - * @Describe .* 前置预防针 - regex pointer preventive injection - 简称 RegexPPi - */ -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public class RegexPPiUtils { - - public static final String TAG = "RegexPPiUtils"; - - // - // 检验文本是否满足适合正则表达式模式计算 - // - public static boolean isPPiOK(String text) { - //String text = "这里是一些任意的文本内容"; - String regex = ".*"; - Pattern pattern = Pattern.compile(regex); - Matcher matcher = pattern.matcher(text); - /*if (matcher.matches()) { - System.out.println("文本满足该正则表达式模式"); - } else { - System.out.println("文本不满足该正则表达式模式"); - }*/ - return matcher.matches(); - } -} diff --git a/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/SMSReceiveRuleUtil.java b/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/SMSReceiveRuleUtil.java index 5e37b3a..70286c5 100644 --- a/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/SMSReceiveRuleUtil.java +++ b/mymessagemanager/src/main/java/cc/winboll/studio/mymessagemanager/utils/SMSReceiveRuleUtil.java @@ -8,6 +8,7 @@ package cc.winboll.studio.mymessagemanager.utils; import android.content.Context; import android.util.JsonReader; import cc.winboll.studio.libappbase.LogUtils; +import cc.winboll.studio.libapputils.utils.RegexPPiUtils; import cc.winboll.studio.mymessagemanager.beans.SMSAcceptRuleBean; import cc.winboll.studio.mymessagemanager.beans.SMSAcceptRuleBean_V1; import java.io.IOException;