From cc2e90b72d2fd2a00ea43b142b96b119be4eb58b Mon Sep 17 00:00:00 2001 From: dlh <22029832+dlh996@users.noreply.github.com> Date: Sat, 23 Sep 2023 21:29:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BA=91=E9=97=AA=E4=BB=98):=20=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E8=AF=B7=E6=B1=82=E6=82=AC=E6=B5=AE=E6=A1=86=EF=BC=8C?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E8=AF=B7=E6=B1=82=E5=BC=B9=E7=AA=97=EF=BC=8C?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5=E5=BC=B9=E7=AA=97=EF=BC=8C?= =?UTF-8?q?=E5=8F=B3=E4=BE=A7=E6=82=AC=E6=B5=AE=E5=B9=BF=E5=91=8A=20(#267)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(云闪付): 定位请求悬浮框,定位请求弹窗,消息通知弹窗,右侧悬浮广告 * fix(云闪付): 删除key为0占位 --------- Co-authored-by: dlh close #263 --- src/apps/com.unionpay.ts | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/apps/com.unionpay.ts diff --git a/src/apps/com.unionpay.ts b/src/apps/com.unionpay.ts new file mode 100644 index 00000000..d49d0fcf --- /dev/null +++ b/src/apps/com.unionpay.ts @@ -0,0 +1,60 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.unionpay', + name: '云闪付', + groups: [ + { + key: 1, + name: '定位权限悬浮弹窗', + activityIds: ['com.unionpay.activity.UPActivityMain'], + rules: [ + { + matches: + '[id="com.unionpay:id/locate_guide_view"] >2 [id="com.unionpay:id/locate_iv_close"][visibleToUser=true]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12694508', + }, + ], + }, + { + key: 2, + name: '访问位置请求弹窗', + enable: false, + desc: '自动点击【不允许】。默认关闭,请手动开启', + activityIds: ['com.unionpay.base.UPDialog'], + rules: [ + { + matches: + '[text$="想访问您的位置信息"] < * +2 LinearLayout > [id="com.unionpay:id/btn_cancel"][visibleToUser=true]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12695773', + }, + ], + }, + { + key: 3, + name: '右侧悬浮广告', + activityIds: ['com.unionpay.activity.UPActivityMain'], + rules: [ + { + matches: + '[id="com.unionpay:id/frog_float"] >2 [id="com.unionpay:id/close_view"][visibleToUser=true]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12695699', + }, + ], + }, + { + key: 4, + name: '开启消息通知弹窗', + enable: false, + desc: '默认关闭,请手动开启', + activityIds: ['com.unionpay.base.UPDialog'], + rules: [ + { + matches: + '[text="开启消息通知"] < * + [id="com.unionpay:id/view_alert_cancel"][visibleToUser=true]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12695736', + }, + ], + }, + ], +});