From aeb1d980eab21c7a3a35ff9177805eb1d20f4475 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Sun, 8 Oct 2023 23:27:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=8A=E6=97=A5=E5=A4=B4=E6=9D=A1):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A,=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=BC=B9=E7=AA=97,=E9=80=9A=E7=9F=A5=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=20-=20=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20(#753)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(今日头条): 更新弹窗-规则优化 【更新弹窗】- 规则优化 * 请求通知权限弹窗-规则优化 * chore(actions): check_format_lint * 格式更正 * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] --- src/apps/com.ss.android.article.news.ts | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/apps/com.ss.android.article.news.ts b/src/apps/com.ss.android.article.news.ts index 498653e3..2742d4fc 100644 --- a/src/apps/com.ss.android.article.news.ts +++ b/src/apps/com.ss.android.article.news.ts @@ -7,13 +7,17 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', - activityIds: ['com.ss.android.article.news.activity.MainActivity'], + activityIds: [ + 'com.ss.android.article.news.activity.MainActivity', + 'com.bytedance.ugc.UgcDetailInfoActivity', + ], rules: [ { matches: '[childCount=1] > [text="跳过广告"]', snapshotUrls: [ 'https://gkd-kit.gitee.io/import/12684954', 'https://gkd-kit.gitee.io/import/12754759', + 'https://gkd-kit.gitee.io/import/12840189', ], }, ], @@ -21,11 +25,17 @@ export default defineAppConfig({ { key: 1, name: '更新弹窗', - activityIds: ['com.ss.android.mine.BaseSettingActivity'], + activityIds: [ + 'com.ss.android.mine.BaseSettingActivity', + 'com.miui.home.launcher.Launcher', + ], rules: [ { - matches: '[text="升级版本"] + [desc="关闭"][clickable=true]', - snapshotUrls: ['https://gkd-kit.gitee.io/import/12685000'], + matches: '[text="升级版本"] +n [desc="关闭"][clickable=true]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12685000', + 'https://gkd-kit.gitee.io/import/12840104', + ], }, ], }, @@ -39,6 +49,11 @@ export default defineAppConfig({ matches: '[text^="开启通知"] + LinearLayout > [text="暂不开启"]', snapshotUrls: ['https://gkd-kit.gitee.io/import/12706699'], }, + { + matches: + '[text^="开启通知"] < LinearLayout +2 ImageView[desc="关闭"]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/12840217'], + }, ], }, {