feat(WPS): 首页-文档列表广告、首页-弹窗广告规则优化 (#1855)

* feat(WPS): 首页-文档列表广告、首页-弹窗广告规则优化

* feat(WPS): 规则优化

---------

Co-authored-by: lisonge <i@songe.li>
This commit is contained in:
aoguai 2023-11-05 23:03:29 +08:00 committed by GitHub
parent e86b064dd1
commit 76c9eddfc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,35 +29,39 @@ export default defineAppConfig({
], ],
activityIds: [ activityIds: [
'cn.wps.moffice.main.StartPublicActivity', 'cn.wps.moffice.main.StartPublicActivity',
'cn.wps.moffice.documentmanager.PreStartActivity',
'cn.wps.moffice.main.local.HomeRootActivity', 'cn.wps.moffice.main.local.HomeRootActivity',
], ],
rules: [ rules: [
{ {
matches: '[text="关闭当前广告"||text="不喜欢此广告"]', key: 0,
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12505365',
'https://i.gkd.li/import/12882277',
],
},
{
matches: '[id$="/nativeclose"]', matches: '[id$="/nativeclose"]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12505350', 'https://gkd-kit.gitee.io/import/12505350',
'https://gkd-kit.gitee.io/import/12505286', 'https://gkd-kit.gitee.io/import/12505286',
], ],
}, },
{
preKeys: 0,
matches: '[text="关闭当前广告"||text="不喜欢此广告"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12505365',
'https://i.gkd.li/import/13259090',
],
},
], ],
}, },
{ {
key: 2, key: 2,
name: '首页-弹窗广告', name: '首页-弹窗广告',
quickFind: true,
activityIds: [ activityIds: [
'cn.wps.moffice.main.AfterLoginActivity', 'cn.wps.moffice.main.AfterLoginActivity',
'com.android.packageinstaller.permission.ui.GrantPermissionsActivity', 'com.android.packageinstaller.permission.ui.GrantPermissionsActivity',
], ],
rules: '[id="cn.wps.moffice_eng:id/afterlogin_cancel"]', rules: '[id="cn.wps.moffice_eng:id/afterlogin_cancel"]',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12882589', 'https://i.gkd.li/import/13259097',
'https://i.gkd.li/import/12882712', 'https://i.gkd.li/import/12882712',
], ],
}, },