perf(小红书): 权限提示-通知权限 (#717)

This commit is contained in:
AIsouler
2025-01-15 17:57:42 +08:00
parent 7cf9d2761d
commit d65c28825a

View File

@@ -35,7 +35,6 @@ export default defineGkdApp({
key: 1, key: 1,
name: '权限提示-通知权限', name: '权限提示-通知权限',
fastQuery: true, fastQuery: true,
matchTime: 30000,
actionMaximum: 1, actionMaximum: 1,
resetMatch: 'app', resetMatch: 'app',
rules: [ rules: [
@@ -45,12 +44,16 @@ export default defineGkdApp({
'.index.v2.IndexActivityV2', '.index.v2.IndexActivityV2',
'.notification.NotificationAuthorizationTranslucentActivity', '.notification.NotificationAuthorizationTranslucentActivity',
'com.xingin.matrix.notedetail.r10.comment.r10.NoteCommentActivity', 'com.xingin.matrix.notedetail.r10.comment.r10.NoteCommentActivity',
'com.xingin.authorization.NotificationAuthorizationTranslucentActivity',
], ],
matches: '@ImageView <2 FrameLayout >2 [text^="打开通知"]', matches:
'@ImageView[clickable=true][visibleToUser=true] - LinearLayout > [text^="打开通知" || text^="Enable notifications"]',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/i/13195753', 'https://i.gkd.li/i/13195753',
'https://i.gkd.li/i/13222356', 'https://i.gkd.li/i/13222356',
'https://i.gkd.li/i/13255627', 'https://i.gkd.li/i/13255627',
'https://i.gkd.li/i/16918033',
'https://i.gkd.li/i/18417785',
], ],
}, },
{ {
@@ -59,14 +62,6 @@ export default defineGkdApp({
matches: '@ImageView <2 FrameLayout - [text^="打开通知"]', matches: '@ImageView <2 FrameLayout - [text^="打开通知"]',
snapshotUrls: 'https://i.gkd.li/i/13250418', snapshotUrls: 'https://i.gkd.li/i/13250418',
}, },
{
key: 2,
activityIds:
'com.xingin.authorization.NotificationAuthorizationTranslucentActivity',
matches: '[vid="mNegativeImageView"]',
exampleUrls: 'https://e.gkd.li/01c3cb0b-80b1-4e70-a330-6f4afb7ddf44',
snapshotUrls: 'https://i.gkd.li/i/16918033',
},
], ],
}, },
{ {