feat(一淘): 更新弹窗, 请求打开系统通知提示信息 (#245)

This commit is contained in:
Kun Jinkao
2023-09-21 20:40:11 +08:00
committed by GitHub
parent 3afd43f4a8
commit 3c82369e9e

View File

@@ -0,0 +1,46 @@
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.taobao.etao',
name: '一淘',
groups: [
{
key: 1,
name: '更新弹窗',
activityIds: [
'com.taobao.etao.app.homev4.HomeV4Activity',
'com.miui.home.launcher.Launcher',
],
rules: [
{
matches:
'[text="更新提示"] < LinearLayout < LinearLayout +(2) ScrollView >(2) [text="取消"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12684250',
'https://gkd-kit.gitee.io/import/12684244', // activityId: 'com.miui.home.launcher.Launcher'
],
},
],
},
{
enable: false,
key: 10,
name: '请求打开系统通知提示信息',
desc: '自动点击提示信息的x按钮',
rules: [
{
activityIds: ['com.taobao.sns.app.message.MessageActivity'],
matches:
'[text^="打开消息通知"] + [text="去开启"] + ImageView[clickable=true]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12684278'],
},
{
activityIds: ['com.taobao.etao.mine.MetaXMineActivity'],
matches:
'[text^="打开消息通知"] + FrameLayout > [text="去开启"] < FrameLayout + ImageView[clickable=true]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12684351'],
},
],
},
],
});