feat(OMOFUN): 规则优化 (#1348)

* feat(OMOFUN): 规则优化

* 格式更正

* chore(actions): check_format_lint

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

close #1345
This commit is contained in:
jiuqianyuan
2023-10-24 01:07:28 +08:00
committed by GitHub
parent 9014973759
commit 9e88a7534f

View File

@@ -7,6 +7,7 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
matchLauncher: true,
activityIds: ['com.cyl.musiccy.ou.MainActivity'],
rules: [
{
@@ -31,6 +32,11 @@ export default defineAppConfig({
matches: 'FrameLayout > LinearLayout > TextView[text^="跳过"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/13063246',
},
{
matches:
'[id="com.cyl.musiccy.ou:id/ksad_splash_root_container"] [text="跳过"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/13071599',
},
],
},
{
@@ -51,11 +57,11 @@ export default defineAppConfig({
{
key: 2,
name: '插屏广告',
matchLauncher: true,
activityIds: [
'com.cyl.musiccy.ou.MainActivity',
'com.sigmob.sdk.base.common.TransparentAdActivity',
'com.miui.wakepath.ui.ConfirmStartActivity',
'com.miui.home.launcher.Launcher',
],
rules: [
{
@@ -95,8 +101,11 @@ export default defineAppConfig({
{
action: 'clickCenter',
matches:
'TextView[text="立即下载"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12789928',
'TextView[text="立即下载" || text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12789928',
'https://gkd-kit.gitee.io/import/13071595',
],
},
{
action: 'click',