From 2993618baed3c2779c48bf082c92f7f0b4d30e36 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sun, 24 Dec 2023 21:15:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(Keep):=20=E9=9D=92=E5=B0=91=E5=B9=B4?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=BC=B9=E7=AA=97=EF=BC=88=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=A7=84=E5=88=99=EF=BC=89=E3=80=81=E9=A6=96=E9=A1=B5=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E5=BC=B9=E7=AA=97=EF=BC=88=E4=BC=98=E5=8C=96=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=89=E3=80=81=E8=AF=B7=E6=B1=82=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=9D=83=E9=99=90=E5=BC=B9=E7=AA=97=20(#3415?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 青少年模式弹窗(优化规则) * feat 首页广告弹窗(优化规则) * feat 请求开启通知权限弹窗 --- src/apps/com.gotokeep.keep.ts | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/apps/com.gotokeep.keep.ts b/src/apps/com.gotokeep.keep.ts index fec23404..3412d1d0 100644 --- a/src/apps/com.gotokeep.keep.ts +++ b/src/apps/com.gotokeep.keep.ts @@ -25,20 +25,28 @@ export default defineAppConfig({ { key: 1, name: '青少年模式弹窗', - activityIds: - 'com.gotokeep.keep.refactor.business.main.activity.MainActivity', - rules: - '[text$="未成年人模式"] + ImageView + ViewGroup > [text="我知道了"]', + actionMaximum: 1, + resetMatch: 'app', + quickFind: true, + rules: '[text$="未成年人模式"] +2 @[clickable=true] > [text="我知道了"]', snapshotUrls: 'https://i.gkd.li/import/12706097', }, { key: 2, name: '首页广告弹窗', - activityIds: - 'com.gotokeep.keep.refactor.business.main.activity.MainActivity', - rules: - '[id="com.gotokeep.keep:id/layoutLottie"] + [id="com.gotokeep.keep:id/imgCloseHomePageDialog"]', - snapshotUrls: 'https://i.gkd.li/import/12706102', + rules: [ + { + key: 0, + activityIds: + 'com.gotokeep.keep.refactor.business.main.activity.MainActivity', + matches: + '[id="com.gotokeep.keep:id/layoutLottie"] +(1,2) [id="com.gotokeep.keep:id/imgCloseHomePageDialog"]', + snapshotUrls: [ + 'https://i.gkd.li/import/12706102', + 'https://i.gkd.li/import/13761641', + ], + }, + ], }, { key: 3, @@ -57,5 +65,14 @@ export default defineAppConfig({ rules: 'ImageView + LinearLayout > ImageView[id=null][clickable=true]', snapshotUrls: 'https://i.gkd.li/import/12706111', }, + { + key: 5, + name: '请求开启通知权限弹窗', + actionMaximum: 1, + resetMatch: 'app', + quickFind: true, + rules: '@[text="暂不开启"] +2 [text="开启通知权限"]', + snapshotUrls: 'https://i.gkd.li/import/13761671', + }, ], });