From c4fcfeaea72e857eff103e4e03e3c0c74e434bda Mon Sep 17 00:00:00 2001 From: AIsouler <57941037+AIsouler@users.noreply.github.com> Date: Sun, 14 Jan 2024 21:28:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(AH=E8=A7=86=E9=A2=91):=20=E5=85=AC?= =?UTF-8?q?=E5=91=8A=E5=BC=B9=E7=AA=97=E3=80=81=E6=8E=A8=E5=B9=BF=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E3=80=81=E5=B9=BF=E5=91=8A=E5=BC=B9=E7=AA=97=E3=80=81?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E9=A1=B5=E5=B9=BF=E5=91=8A=20(#3777)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(AH视频):公告弹窗、推广弹窗、广告弹窗、播放页广告 * chore(actions): check_format_lint * fix(AH视频):广告弹窗修复,播放页面补充规则 * chore(actions): check_format_lint * fix:补充key值 * feat:修改规则名称 --------- Co-authored-by: github-actions[bot] --- src/apps/com.chunqiu.ah.ts | 70 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/src/apps/com.chunqiu.ah.ts b/src/apps/com.chunqiu.ah.ts index 8ba27bd7..7211b2d8 100644 --- a/src/apps/com.chunqiu.ah.ts +++ b/src/apps/com.chunqiu.ah.ts @@ -27,7 +27,7 @@ export default defineAppConfig({ }, { key: 1, - name: '弹窗广告', + name: '全屏广告-弹窗广告', quickFind: true, activityIds: 'com.androlua.LuaActivity', rules: [ @@ -39,7 +39,7 @@ export default defineAppConfig({ }, { key: 2, - name: '卡片式广告', + name: '局部广告-卡片式广告', rules: [ { key: 0, @@ -51,5 +51,71 @@ export default defineAppConfig({ }, ], }, + { + key: 3, + quickFind: true, + name: '全屏广告-首页推广', + desc: '点击我已知晓', + rules: [ + { + activityIds: 'com.androlua.LuaActivity', + matches: + '[id="com.chunqiu.ah:id/buttonPanel"] [text="我已知晓"][id="android:id/button2"]', + snapshotUrls: 'https://i.gkd.li/import/13852430', + }, + ], + }, + { + key: 4, + quickFind: true, + name: '全屏广告-公告', + desc: '点击不再提示', + rules: [ + { + activityIds: 'com.androlua.LuaActivity', + matches: '[id="com.chunqiu.ah:id/buttonPanel"] [text="不再提示"]', + snapshotUrls: 'https://i.gkd.li/import/13852447', + }, + ], + }, + { + key: 5, + quickFind: true, + name: '全屏广告-首页广告弹窗', + desc: '点击X', + rules: [ + { + activityIds: 'com.androlua.LuaActivity', + matches: + '@ImageView[visibleToUser=true] < * +3 * > [text="查看详情"]', + snapshotUrls: 'https://i.gkd.li/import/13852448', + }, + ], + }, + { + key: 6, + name: '局部广告-播放界面广告', + desc: '点击X', + rules: [ + { + key: 0, + activityIds: 'com.androlua.LuaActivity', + matches: + '[id="com.chunqiu.ah:id/ksad_container"] >n View[id="logoBox"] > TextView[clickable=true]', + snapshotUrls: 'https://i.gkd.li/import/13852535', + }, + { + key: 1, + activityIds: 'com.androlua.LuaActivity', + matches: + '[id="android:id/content"] FrameLayout[childCount<=5] > FrameLayout[childCount=1] > ImageView[visibleToUser=true][index=0]', + snapshotUrls: [ + 'https://i.gkd.li/import/13852695', + 'https://i.gkd.li/import/13852670', + 'https://i.gkd.li/import/13852669', + ], + }, + ], + }, ], });