From 413adcafc78dbe6b95abe67f98646e6e0f43f25a Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Mon, 2 Oct 2023 22:59:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8F=A4=E6=96=87=E5=B2=9B):=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=BC=B9=E7=AA=97,=E7=AC=AC=E4=B8=89=E6=96=B9=20SDK?= =?UTF-8?q?=20=E5=B9=BF=E5=91=8A=E5=BC=B9=E7=AA=97=20(#564)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 新创建 App 规则 * 新创建 App 规则 * feat 【第三方 SDK 广告弹窗】新增两条规则 --- src/apps/com.guwendao.gwd.ts | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/apps/com.guwendao.gwd.ts diff --git a/src/apps/com.guwendao.gwd.ts b/src/apps/com.guwendao.gwd.ts new file mode 100644 index 00000000..d5298bed --- /dev/null +++ b/src/apps/com.guwendao.gwd.ts @@ -0,0 +1,49 @@ +import { machine } from 'os'; +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.guwendao.gwd', + name: '古文岛', + groups: [ + { + key: 1, + name: '更新弹窗', + activityIds: 'com.guwendao.gwd.MainActivity', + rules: '[text="应用升级提醒"] +n LinearLayout > [text="取消"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12776605', + }, + { + key: 2, + name: '第三方 SDK 广告弹窗', + activityIds: 'com.guwendao.gwd.MainActivity', + rules: [ + { + key: 0, + matches: 'ImageView - FrameLayout > FrameLayout > ImageView[id=null]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12776607', + }, + { + activityIds: + 'com.android.systemui.media.MediaProjectionPermissionActivity', // 疑似设置权限后activityId更新不及时产生的bug + key: 1, + matches: + 'ImageView - LinearLayout - FrameLayout > FrameLayout > ImageView[id=null]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12777151', + }, + { + activityIds: + 'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity', + key: 2, + matches: '@Image[id=null] < View + View + TextView[text="反馈"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12781327', + }, + { + key: 3, + matches: + '[id="com.byted.pangle.m:id/tt_reward_full_count_down_after"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12781344', + }, + ], + }, + ], +});