feat(AppShare): 开屏广告(优化规则)、卡片式广告 (#3411)

* feat 开屏广告(优化规则)

* feat 卡片式广告
This commit is contained in:
Kun Jinkao
2023-12-24 21:40:23 +08:00
committed by GitHub
parent fe668f2534
commit 372bebc1b2

View File

@@ -12,14 +12,17 @@ export default defineAppConfig({
resetMatch: 'app', resetMatch: 'app',
rules: [ rules: [
{ {
key: 0,
matches: '[id$="tt_splash_skip_btn"]', matches: '[id$="tt_splash_skip_btn"]',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12683145', 'https://i.gkd.li/import/12683145',
'https://i.gkd.li/import/12683173', // activityId: 'com.miui.home.launcher.Launcher' 'https://i.gkd.li/import/12683173',
'https://i.gkd.li/import/13702708', 'https://i.gkd.li/import/13702708',
], ],
}, },
{ {
key: 1,
quickFind: true,
matches: '[text*="跳过"][text.length<=10]', matches: '[text*="跳过"][text.length<=10]',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12683168', 'https://i.gkd.li/import/12683168',
@@ -30,14 +33,21 @@ export default defineAppConfig({
], ],
}, },
{ {
key: 6, key: 1,
name: '下载页-卡片广告', name: '卡片广告',
matchTime: 10000, rules: [
actionMaximum: 1, {
activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity', key: 0,
rules: name: '腾讯广告',
'FrameLayout[childCount>1] > FrameLayout[childCount=1] > ImageView[width<90][height<90]', activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity',
snapshotUrls: 'https://i.gkd.li/import/13712716', matches:
'[id="info.muge.appshare:id/adContainer"] >n FrameLayout > ImageView - FrameLayout[childCount=1] > ImageView[childCount=0]',
snapshotUrls: [
'https://i.gkd.li/import/13761259',
'https://i.gkd.li/import/13712716',
],
},
],
}, },
], ],
}); });