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 = "取消"]', + }, + ], +});