Skip to content

Commit

Permalink
perf: 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
AIsouler committed Jan 3, 2025
1 parent c95a14a commit 28af011
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions src/apps/com.alcidae.smarthome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,43 @@ export default defineGkdApp({
key: 1,
name: '全屏广告-首页通知弹窗',
desc: '点击[不再提醒]并关闭弹窗',
fastQuery: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
snapshotUrls: 'https://i.gkd.li/i/18291310',
activityIds: 'com.danale.video.mainpage.main.MainActivity',
rules: [
{
activityIds: 'com.danale.video.mainpage.main.MainActivity',
matches:
'@LinearLayout[childCount=2] + @ImageButton[id="com.alcidae.smarthome:id/ibtn_close"][visibleToUser=true][clickable=true] <<n FrameLayout[id="android:id/content"]',
key: 0,
matches: '[vid="cb_not_show"][checked=false][visibleToUser=true]',
exampleUrls: 'https://e.gkd.li/02d8846c-6753-4efe-b944-ea024f7485ad',
snapshotUrls: 'https://i.gkd.li/i/18291310',
},
{
activityIds: 'com.danale.video.mainpage.main.MainActivity',
matches:
'@TextView[text="不再提醒"] - @CheckBox[id="com.alcidae.smarthome:id/cb_not_show"][visibleToUser=true] < LinearLayout[childCount=2] <<n FrameLayout',
preKeys: [0],
matches: '[vid="ibtn_close"][visibleToUser=true]',
exampleUrls: 'https://e.gkd.li/02d8846c-6753-4efe-b944-ea024f7485ad',
snapshotUrls: 'https://i.gkd.li/i/18291310',
},
],
},
{
name: '通知提示',
key: 4,
desc: '拒绝开启通知',
key: 2,
name: '权限提示-通知权限',
desc: '点击[取消]',
fastQuery: true,
matchTime: 10000,
actionMaximum: 1,
snapshotUrls: 'https://i.gkd.li/i/18059150',
resetMatch: 'app',
rules: [
{
activityIds: 'com.danale.video.mainpage.main.MainActivity',
matches: [
'TextView[id="com.alcidae.smarthome:id/danale_info_dialog_cancel_btn"][text="取消"]',
'[text*="开启通知"][visibleToUser=true]',
'[text="取消"][visibleToUser=true]',
],
exampleUrls: 'https://e.gkd.li/5f19c508-d4d3-4221-aafe-ab19845b3d4b',
snapshotUrls: 'https://i.gkd.li/i/18059150',
},
],
},
Expand Down

0 comments on commit 28af011

Please sign in to comment.