perf: some rules

This commit is contained in:
AIsouler
2024-12-01 16:50:48 +08:00
parent 79cc6e038e
commit 6a5bf48d69
37 changed files with 252 additions and 116 deletions

View File

@@ -10,8 +10,8 @@ export default defineGkdApp({
desc: '点击右侧x',
rules: [
{
activityIds: 'cn.wps.yun.ui.IndexActivity',
fastQuery: true,
activityIds: 'cn.wps.yun.ui.IndexActivity',
matches:
'[id="cn.wps.yun:id/rootGroup"][childCount=5] > [text^="实用技巧"] +3 [id="cn.wps.yun:id/moreIconRight"]',
exampleUrls:
@@ -26,20 +26,32 @@ export default defineGkdApp({
{
key: 2,
name: '更新提示',
fastQuery: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
fastQuery: true,
rules: '[text="发现新版本"] +3 [text="取消"]',
snapshotUrls: 'https://i.gkd.li/i/14333103',
rules: [
{
activityIds: '.ui.IndexActivity',
matches: '[text="发现新版本"] +3 [text="取消"]',
snapshotUrls: 'https://i.gkd.li/i/14333103',
},
],
},
{
key: 3,
name: '权限提示-通知权限',
fastQuery: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
fastQuery: true,
rules: '[text="开启推送通知"] +2 * > [text="取消"]',
snapshotUrls: 'https://i.gkd.li/i/14333362',
rules: [
{
activityIds: '.ui.IndexActivity',
matches: '[text="开启推送通知"] +2 * > [text="取消"]',
snapshotUrls: 'https://i.gkd.li/i/14333362',
},
],
},
],
});