From 3396b18edc2f715abf5bdf94ae736f83a409b0fe Mon Sep 17 00:00:00 2001 From: walklty <47232102+walklty@users.noreply.github.com> Date: Wed, 11 Oct 2023 01:03:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8B=B7=E8=B2=9D=E6=BC=AB=E7=95=AB):=20?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=B5=9E=E5=8A=A9=E6=8F=90=E7=A4=BA,?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96=20(#850)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update com.copymanga.app.ts 更新内部弹窗广告和书架下广告 * chore(actions): check_format_lint * feat(拷貝漫畫): 规则优化 --------- Co-authored-by: github-actions[bot] Co-authored-by: 二刺螈 --- src/apps/com.copymanga.app.ts | 42 ++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/src/apps/com.copymanga.app.ts b/src/apps/com.copymanga.app.ts index 7caa1b2b..ad015591 100644 --- a/src/apps/com.copymanga.app.ts +++ b/src/apps/com.copymanga.app.ts @@ -7,11 +7,10 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', + matchLauncher: true, activityIds: [ 'com.copymanga.app.MainActivity', - 'com.miui.home.launcher.Launcher', 'com.reaper.flutter.reaper_flutter_plugin.activity.ReaperSplashActivity', - 'com.huawei.android.launcher.unihome.UniHomeLauncher', ], rules: [ { @@ -28,10 +27,8 @@ export default defineAppConfig({ { key: 1, name: '内部弹窗广告', - activityIds: [ - 'com.copymanga.app.MainActivity', - 'com.miui.home.launcher.Launcher', - ], + matchLauncher: true, + activityIds: ['com.copymanga.app.MainActivity'], rules: [ { activityIds: 'com.kwad.components.ad.interstitial', @@ -55,16 +52,41 @@ export default defineAppConfig({ 'https://gkd-kit.gitee.io/import/12661019', ], }, + { + matches: + '@ImageView < FrameLayout[childCount=1] +2 FrameLayout[childCount=2] >2 TextView[text$="看看"][text^="去"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12504501', + }, ], }, { key: 2, name: '加入书架按钮下面的广告', activityIds: 'com.copymanga.app.MainActivity', - rules: { - matches: 'ImageView[id="com.copymanga.app:id/close"]', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12504525', - }, + rules: [ + { + name: '点击右上角x', + matches: 'ImageView[id="com.copymanga.app:id/close"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12504525', + }, + { + name: '点击右下角x', + matches: + 'FrameLayout[childCount=3] > LinearLayout[childCount=1] + FrameLayout[childCount=1] > ImageView[id=null]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12851671', + }, + ], + }, + { + key: 3, + name: '关闭赞助提示', + activityIds: 'com.copymanga.app.MainActivity', + rules: [ + { + matches: '@[desc="就这样吧"] + [desc^="赞助免广告"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12851627', + }, + ], }, ], });