feat(饿了么): 规则优化(gkd-kit#3216) (#3315)

close #3216
This commit is contained in:
aoguai
2023-12-24 20:32:57 +08:00
committed by GitHub
parent 97619954a2
commit b92344ea7d

View File

@@ -45,13 +45,14 @@ export default defineAppConfig({
'me.ele.shopdetailv2.ShopDetailV2Activity', 'me.ele.shopdetailv2.ShopDetailV2Activity',
], ],
matches: matches:
'@ImageView[clickable=true] - ViewGroup < [id="me.ele:id/id_magex_mistview"][childCount=2]', '[id="me.ele:id/id_magex_mistview"] >n ViewGroup + ImageView',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12650238', 'https://i.gkd.li/import/12650238',
'https://i.gkd.li/import/13294893', 'https://i.gkd.li/import/13294893',
'https://i.gkd.li/import/13331361', 'https://i.gkd.li/import/13331361',
'https://i.gkd.li/import/13362974', 'https://i.gkd.li/import/13362974',
'https://i.gkd.li/import/13376008', 'https://i.gkd.li/import/13376008',
'https://i.gkd.li/import/13710581',
], ],
}, },
{ {
@@ -87,10 +88,7 @@ export default defineAppConfig({
}, },
{ {
key: 2, key: 2,
activityIds: [ activityIds: ['me.ele.application.ui.Launcher.LauncherActivity'],
'me.ele.application.ui.Launcher.LauncherActivity',
'me.ele.application.ui.Launcher.LauncherActivity',
],
matches: matches:
'[id="me.ele:id/fl_render_e_shop"] + FrameLayout >n ViewGroup[childCount=6] > View[index=5]', '[id="me.ele:id/fl_render_e_shop"] + FrameLayout >n ViewGroup[childCount=6] > View[index=5]',
snapshotUrls: [ snapshotUrls: [
@@ -98,6 +96,15 @@ export default defineAppConfig({
'https://i.gkd.li/import/13523541', 'https://i.gkd.li/import/13523541',
], ],
}, },
{
key: 3,
activityIds: ['me.ele.application.ui.Launcher.LauncherActivity'],
matches: 'ViewGroup[clickable=true] - TextView[text="放弃"]',
snapshotUrls: [
'https://i.gkd.li/import/13710574',
'https://i.gkd.li/import/13710591',
],
},
], ],
}, },
{ {
@@ -116,5 +123,34 @@ export default defineAppConfig({
rules: '@View + View >2 [text="买校园版超级吃货卡"]', rules: '@View + View >2 [text="买校园版超级吃货卡"]',
snapshotUrls: 'https://i.gkd.li/import/13295007', snapshotUrls: 'https://i.gkd.li/import/13295007',
}, },
{
key: 7,
name: '首页-底部浮窗广告',
activityIds: 'me.ele.application.ui.Launcher.LauncherActivity',
rules:
'LinearLayout >n FrameLayout >n ViewGroup[childCount=3] + ViewGroup[clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13710588',
},
{
key: 8,
name: '开启定位提醒',
desc: '自动点击X',
enable: false,
quickFind: true,
rules: [
{
key: 0,
activityIds: 'me.ele.application.ui.Launcher.LauncherActivity',
matches: '[text="去开启"] + [id="me.ele:id/close"]',
snapshotUrls: 'https://i.gkd.li/import/13710588',
},
{
key: 1,
activityIds: 'me.ele.application.ui.Launcher.LauncherActivity',
matches: '[text="去开启"] + [id="me.ele:id/close_tips"]',
snapshotUrls: 'https://i.gkd.li/import/13710585',
},
],
},
], ],
}); });