feat(京喜特价): 开屏广告-规则优化;通知权限弹窗 (#1305)

* feat: 请求通知权限弹窗

* feat: 开屏广告(补充 activityId)
This commit is contained in:
Kun Jinkao 2023-10-23 00:41:12 +08:00 committed by GitHub
parent 526a5677ea
commit b58dfe345f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,9 +7,16 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
name: '开屏广告', name: '开屏广告',
activityIds: 'com.jd.jdlite.ad.ADActivity', activityIds: [
'com.jd.jdlite.ad.ADActivity',
'com.jd.jdlite.MainActivity',
],
matchLauncher: true,
rules: '[desc="闪屏广告"] + [text$="跳过"]', rules: '[desc="闪屏广告"] + [text$="跳过"]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12727385', snapshotUrls: [
'https://gkd-kit.songe.li/import/12727385',
'https://gkd-kit.songe.li/import/13062972',
],
}, },
{ {
key: 1, key: 1,
@ -18,5 +25,13 @@ export default defineAppConfig({
rules: '@[desc="关闭页面"] - FrameLayout >n [text="极速版弹窗"]', rules: '@[desc="关闭页面"] - FrameLayout >n [text="极速版弹窗"]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12727396', snapshotUrls: 'https://gkd-kit.songe.li/import/12727396',
}, },
{
key: 10,
name: '请求通知权限弹窗',
activityIds: 'com.jd.jdlite.MainFrameActivity',
rules:
'@ImageView[clickable=true] - LinearLayout > [text="开启消息通知"]',
snapshotUrls: 'https://gkd-kit.songe.li/import/13062969',
},
], ],
}); });