feat(AppShare): 局部广告-卡片广告(优化规则)

This commit is contained in:
aisouler
2024-02-23 15:12:34 +08:00
parent 9c780e7796
commit 374c2a347f

View File

@@ -42,31 +42,21 @@ export default defineAppConfig({
rules: [ rules: [
{ {
key: 0, key: 0,
name: '软件详情页卡片广告', name: '软件详情页/搜索页卡片广告',
quickFind: true, quickFind: true,
activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity', activityIds: [
'info.muge.appshare.view.app.detail.AppDetailActivity',
'info.muge.appshare.view.search.app.SearchAppActivity',
],
matches: matches:
'ImageView < @FrameLayout[index=2][desc=null] <3 FrameLayout[childCount=5] <<(6,7) [id="info.muge.appshare:id/adContainer"]', 'ImageView < @FrameLayout[index=2][desc=null] <3 FrameLayout[childCount=5] <<(6,7) [vid^="ad"]',
exampleUrls: exampleUrls:
'https://m.gkd.li/57941037/c19bb8e3-abae-46ee-bfe9-d7846cd868bc', 'https://m.gkd.li/57941037/c19bb8e3-abae-46ee-bfe9-d7846cd868bc',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/14160820', 'https://i.gkd.li/i/14382413',
'https://i.gkd.li/import/13712716', 'https://i.gkd.li/i/14368946',
'https://i.gkd.li/import/13761259',
'https://i.gkd.li/i/14368768', // 避免在此页面误触
], ],
}, },
{
key: 1,
name: '搜索页卡片广告',
quickFind: true,
activityIds: 'info.muge.appshare.view.search.app.SearchAppActivity',
matches:
'ImageView < @FrameLayout[index=2][desc=null] <3 FrameLayout[childCount=5] <<7 [vid="adView"]',
exampleUrls:
'https://m.gkd.li/57941037/9f0e824f-b48e-42f7-9d1a-82642e409d12',
snapshotUrls: 'https://i.gkd.li/i/14368946',
},
], ],
}, },
{ {