Skip to content

Commit d65c288

Browse files
committed
perf(小红书): 权限提示-通知权限 (#717)
1 parent 7cf9d27 commit d65c288

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/apps/com.xingin.xhs.ts

+5-10
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export default defineGkdApp({
3535
key: 1,
3636
name: '权限提示-通知权限',
3737
fastQuery: true,
38-
matchTime: 30000,
3938
actionMaximum: 1,
4039
resetMatch: 'app',
4140
rules: [
@@ -45,12 +44,16 @@ export default defineGkdApp({
4544
'.index.v2.IndexActivityV2',
4645
'.notification.NotificationAuthorizationTranslucentActivity',
4746
'com.xingin.matrix.notedetail.r10.comment.r10.NoteCommentActivity',
47+
'com.xingin.authorization.NotificationAuthorizationTranslucentActivity',
4848
],
49-
matches: '@ImageView <2 FrameLayout >2 [text^="打开通知"]',
49+
matches:
50+
'@ImageView[clickable=true][visibleToUser=true] - LinearLayout > [text^="打开通知" || text^="Enable notifications"]',
5051
snapshotUrls: [
5152
'https://i.gkd.li/i/13195753',
5253
'https://i.gkd.li/i/13222356',
5354
'https://i.gkd.li/i/13255627',
55+
'https://i.gkd.li/i/16918033',
56+
'https://i.gkd.li/i/18417785',
5457
],
5558
},
5659
{
@@ -59,14 +62,6 @@ export default defineGkdApp({
5962
matches: '@ImageView <2 FrameLayout - [text^="打开通知"]',
6063
snapshotUrls: 'https://i.gkd.li/i/13250418',
6164
},
62-
{
63-
key: 2,
64-
activityIds:
65-
'com.xingin.authorization.NotificationAuthorizationTranslucentActivity',
66-
matches: '[vid="mNegativeImageView"]',
67-
exampleUrls: 'https://e.gkd.li/01c3cb0b-80b1-4e70-a330-6f4afb7ddf44',
68-
snapshotUrls: 'https://i.gkd.li/i/16918033',
69-
},
7065
],
7166
},
7267
{

0 commit comments

Comments
 (0)