From c9d461f642288b6fb2ded0b4572659fc008f1a15 Mon Sep 17 00:00:00 2001 From: shjdgwj Date: Mon, 23 Oct 2023 00:58:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(OmoFun):=20=E5=85=BC=E5=AE=B9=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2=E5=8C=85=E5=90=8D=E7=9A=84=E6=96=B0APP=20(#1311)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(OmoFun): 开屏广告,首页通知,插屏广告 合并规则 * feat(OmoFun): 开屏广告,首页通知,插屏广告 * feat(OmoFun): 插屏广告 * feat(OmoFun): 插屏广告 * feat(OmoFun): 修改APP id,新增开屏广告规则 * feat(OmoFun): 首页通知 * feat(OmoFun): 插屏广告 * feat(OmoFun): 开屏广告,首页通知,插屏广告 * feat(OMOFUN): 规则优化 --------- Co-authored-by: ‘shjdgwj’ <‘shjdgwj@qq.com’> Co-authored-by: lisonge --- src/apps/com.cyl.musiccy.ou.ts | 110 +++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 src/apps/com.cyl.musiccy.ou.ts diff --git a/src/apps/com.cyl.musiccy.ou.ts b/src/apps/com.cyl.musiccy.ou.ts new file mode 100644 index 00000000..6fef6e73 --- /dev/null +++ b/src/apps/com.cyl.musiccy.ou.ts @@ -0,0 +1,110 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.cyl.musiccy.ou', + name: 'OMOFUN', + groups: [ + { + key: 0, + name: '开屏广告', + activityIds: ['com.cyl.musiccy.ou.MainActivity'], + rules: [ + { + matches: '[id="com.cyl.musiccy.ou:id/ksad_splash_circle_skip_view"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12775918', + }, + { + matches: + '[id="com.cyl.musiccy.ou:id/ksad_splash_root_container"] [childCount=3] > @ImageView[clickable=true] - [text="|"]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/12775919'], + }, + { + matches: + 'FrameLayout > FrameLayout > [text^="跳过 "][text.length<=4][clickable=true]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12775926', + }, + { + matches: 'LinearLayout > FrameLayout > TextView[text^="跳过"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/13063151', + }, + { + matches: 'FrameLayout > LinearLayout > TextView[text^="跳过"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/13063246', + }, + ], + }, + { + key: 1, + name: '首页通知', + activityIds: ['com.cyl.musiccy.ou.MainActivity'], + rules: [ + // { + // matches: '[desc="了解更多"] - [desc="我知道了"]', + // snapshotUrls: 'https://gkd-kit.gitee.io/import/12775920', + // }, + { + matches: '[desc="我知道了"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/13063206', + }, + ], + }, + { + key: 2, + name: '插屏广告', + activityIds: [ + 'com.cyl.musiccy.ou.MainActivity', + 'com.sigmob.sdk.base.common.TransparentAdActivity', + 'com.miui.wakepath.ui.ConfirmStartActivity', + 'com.miui.home.launcher.Launcher', + ], + rules: [ + { + matches: '[id="com.cyl.musiccy.ou:id/ksad_container"] [text="跳过"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12775922', + 'https://gkd-kit.gitee.io/import/13063222', + ], + }, + { + matches: + '[id="com.cyl.musiccy.ou:id/ksad_container"] [text="广告"] <2 ViewGroup -2 ViewGroup > @ViewGroup[clickable=true][childCount=1] ImageView', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12775923', + }, + { + matches: '[id="ad_area"] [id="close_btn"][clickable=true]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12775925', + 'https://gkd-kit.gitee.io/import/12775924', + ], + }, + { + action: 'clickCenter', + matches: + '[text^="去"][text$="看看"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12775921', + 'https://gkd-kit.gitee.io/import/12776903', + ], + }, + { + action: 'clickCenter', + matches: + 'TextView[text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout > FrameLayout > ImageView', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12789196', + }, + { + action: 'clickCenter', + matches: + 'TextView[text="立即下载"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12789928', + }, + { + action: 'click', + matches: + 'TextView[text^="摇动"||text^="点击"] <2 LinearLayout < LinearLayout < FrameLayout -n FrameLayout[childCount=1] > ImageView', + snapshotUrls: 'https://gkd-kit.gitee.io/import/13063249', + }, + ], + }, + ], +});