Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(小红书): 支持中文app界面通知权限取消 #717

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions src/apps/com.xingin.xhs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,24 @@ export default defineGkdApp({
{
key: 2,
activityIds:
'com.xingin.authorization.NotificationAuthorizationTranslucentActivity',
matches: '[vid="mNegativeImageView"]',
'com.xingin.authorization.NotificationAuthorizationTranslucentActivity', //此界面为英文app权限提示界面
matches:
'FrameLayout[id="android:id/content"] > FrameLayout[vid="rootFrameLayout"][childCount=2] > @ImageView ',
exampleUrls: 'https://e.gkd.li/01c3cb0b-80b1-4e70-a330-6f4afb7ddf44',
snapshotUrls: 'https://i.gkd.li/i/16918033',
},
{
key: 3,
fastQuery: true,
activityIds:
'com.xingin.authorization.NotificationAuthorizationTranslucentActivity', //此界面为中文app权限提示界面
matches: [
'@TextView[text^="打开通知"]',
'@ImageView[vid="f99"][visibleToUser=true]',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种末尾是几个无规律的字符id是应用构建时随机生成的,每个版本都不一样,不建议使用
image

],
exampleUrls: 'https://e.gkd.li/a5cc0b89-20a4-4eca-a09a-3500b92f8528',
snapshotUrls: 'https://i.gkd.li/i/18417785',
},
],
},
{
Expand Down
Loading