From 7d9b2c5ef69a73facf71467f98e8ebd02a6b8136 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:12:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B1=B3=E5=AE=B6):=20=E7=B1=B3=E5=AE=B6?= =?UTF-8?q?=E6=99=BA=E6=83=A0=E5=B9=BF=E5=91=8A,=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=9B=BA=E4=BB=B6=E5=8D=87=E7=BA=A7=E6=8F=90=E7=A4=BA=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=20(#88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(米家): 米家智惠广告, 设备固件升级提示弹窗 * perf(米家): 智惠广告-增加准确性 --------- Co-authored-by: lisonge --- src/apps/com.xiaomi.smarthome.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/apps/com.xiaomi.smarthome.ts diff --git a/src/apps/com.xiaomi.smarthome.ts b/src/apps/com.xiaomi.smarthome.ts new file mode 100644 index 00000000..f1cccd3b --- /dev/null +++ b/src/apps/com.xiaomi.smarthome.ts @@ -0,0 +1,29 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.xiaomi.smarthome', + name: '米家', + groups: [ + { + key: 0, + name: '米家智惠广告', + activityIds: 'com.xiaomi.smarthome.SmartHomeMainActivity', + rules: [ + { + matches: + 'RelativeLayout[id=null] > ImageView[id!=null] + ImageView[clickable=true][id!=null]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/12639658'], + }, + ], + }, + { + enable: false, + key: 1, + name: '设备固件升级提示弹窗', + activityIds: 'com.xiaomi.smarthome.framework.plugin.rn.PluginRNActivity', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12639671', + rules: + '[text*="检测到"&&text*="升级"] < ViewGroup + ViewGroup > Button > [text = "取消"]', + }, + ], +});