feat(大师兄影视): 开屏广告(优化规则)、弹窗广告(优化、补充 activityId) (#2250)

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

* feat 弹窗广告(优化、补充 activityId)
This commit is contained in:
Kun Jinkao
2023-11-19 00:02:52 +08:00
committed by GitHub
parent ea8d87f3bb
commit 0e2a0a65b5

View File

@@ -7,30 +7,24 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
name: '开屏广告', name: '开屏广告',
activityIds: 'com.zhiyin.qingdan.dashixiong.MainActivity',
matchLauncher: true,
quickFind: true, quickFind: true,
rules: [ matchTime: 10000,
{ actionMaximum: 1,
key: 0, resetMatch: 'app',
matches: 'ImageView -n LinearLayout > [text^="跳过"]', rules: '[text^="跳过"][text.length<=10]',
snapshotUrls: 'https://i.gkd.li/import/12843284', snapshotUrls: [
}, 'https://i.gkd.li/import/12843284',
{ 'https://i.gkd.li/import/12843283',
key: 1,
matches:
'[id="com.zhiyin.qingdan.dashixiong:id/ksad_splash_circle_skip_view"] > [text="跳过"]',
snapshotUrls: 'https://i.gkd.li/import/12843283',
},
], ],
}, },
{ {
key: 1, key: 1,
name: '应用内广告弹窗', name: '弹窗广告',
activityIds: 'com.zhiyin.qingdan.dashixiong.MainActivity', activityIds: 'com.zhiyin.qingdan.dashixiong.MainActivity',
rules: [ rules: [
{ {
key: 0, key: 0,
name: '快手广告',
quickFind: true, quickFind: true,
matches: matches:
'@ImageView <n ViewGroup -2 ViewGroup > ViewGroup > [text="广告"]', '@ImageView <n ViewGroup -2 ViewGroup > ViewGroup > [text="广告"]',
@@ -38,20 +32,26 @@ export default defineAppConfig({
}, },
{ {
key: 1, key: 1,
name: '腾讯广告-1',
matches: matches:
'ImageView - LinearLayout - FrameLayout > FrameLayout > ImageView', 'ImageView - LinearLayout - FrameLayout > FrameLayout[childCount=1] > ImageView[childCount=0]',
snapshotUrls: 'https://i.gkd.li/import/12843282', snapshotUrls: 'https://i.gkd.li/import/12843282',
}, },
{ {
key: 2, key: 2,
matches: 'ImageView - FrameLayout > FrameLayout > ImageView', name: '腾讯广告-2',
activityIds: 'com.qq.e.ads.ADActivity',
matches:
'ImageView - FrameLayout > FrameLayout[childCount=1] > ImageView[childCount=0]',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12843345', 'https://i.gkd.li/import/12843345',
'https://i.gkd.li/import/12843333', 'https://i.gkd.li/import/12843333',
'https://i.gkd.li/import/13400656', // com.qq.e.ads.ADActivity
], ],
}, },
{ {
key: 3, key: 3,
name: '字节广告',
quickFind: true, quickFind: true,
matches: '@Image < View +n View > View > View > [text="广告"]', matches: '@Image < View +n View > View > View > [text="广告"]',
snapshotUrls: 'https://i.gkd.li/import/12843323', snapshotUrls: 'https://i.gkd.li/import/12843323',