From ecad86381c774fc0fb8c23f0b3830edca7588b62 Mon Sep 17 00:00:00 2001 From: CallMeBill Date: Mon, 18 Sep 2023 23:20:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8D=8E=E4=B8=BA=E4=B8=BB=E9=A2=98):=20?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E8=AF=A6=E6=83=85=E3=80=81=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=B5=81=E5=B9=BF=E5=91=8A=E3=80=81=E6=A8=AA=E5=B9=85=20(#156)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(华为主题): 主题详情、信息流广告、横幅 * feat(华为主题) --- src/apps/com.huawei.android.thememanager.ts | 106 ++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 src/apps/com.huawei.android.thememanager.ts diff --git a/src/apps/com.huawei.android.thememanager.ts b/src/apps/com.huawei.android.thememanager.ts new file mode 100644 index 00000000..c8d5cc8b --- /dev/null +++ b/src/apps/com.huawei.android.thememanager.ts @@ -0,0 +1,106 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.huawei.android.thememanager', + name: '华为主题', + groups: [ + { + key: 1, + name: '主题详情页“下应用领主题”横幅', + activityIds: [ + 'com.huawei.android.thememanager.mvp.view.activity.onlinetheme.OnlineThemePreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinewallpaper.OnlineWallpaperPreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinefont.OnlineFontPreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.paster.PasterDetailActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinetheme.LocalThemePreviewActivity', + ], + rules: [ + { + matches: '[id="com.huawei.android.thememanager:id/iv_vip_close"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12647175', + }, + ], + }, + { + key: 2, + name: '主题详情页广告', + activityIds: [ + 'com.huawei.android.thememanager.mvp.view.activity.onlinetheme.OnlineThemePreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinewallpaper.OnlineWallpaperPreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinefont.OnlineFontPreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.paster.PasterDetailActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinetheme.LocalThemePreviewActivity', + ], + rules: [ + { + matches: '[id="com.huawei.hms.ads.uiengine:id/unlike_iv"||id="com.huawei.android.thememanager:id/download_pps_close"||id="com.huawei.android.thememanager:id/pps_close"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12647248', + 'https://gkd-kit.gitee.io/import/12647292', + 'https://gkd-kit.gitee.io/import/12647367', + ] + }, + ], + }, + { + key: 3, + name: '主题详情页广告关闭弹窗', + activityIds: ['com.huawei.openalliance.ad.activity.FeedbackActivity'], + rules: [ + { + matches: '[text="直接关闭"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12647268', + }, + ], + }, + { + key: 4, + name: '主题详情信息流广告', + activityIds: [ + 'com.huawei.android.thememanager.mvp.view.activity.onlinetheme.OnlineThemePreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinewallpaper.OnlineWallpaperPreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinefont.OnlineFontPreviewActivity', + 'com.huawei.android.thememanager.mvp.view.activity.paster.PasterDetailActivity', + 'com.huawei.android.thememanager.mvp.view.activity.onlinetheme.LocalThemePreviewActivity', + ], + rules: [ + { + matches: '[id="com.huawei.android.thememanager:id/pps_lable_top"||id="com.huawei.android.thememanager:id/tv_btn_uninterested"||id="com.huawei.android.thememanager:id/pps_img_video_close"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12647311', + 'https://gkd-kit.gitee.io/import/12647326', + 'https://gkd-kit.gitee.io/import/12647346', + ] + }, + ], + }, + { + key: 5, + name: '分类页“免费领取”', + activityIds: ['com.huawei.android.thememanager.HwThemeManagerActivity'], + rules: [ + { + matches: '[id="com.huawei.android.thememanager:id/rl_ad_close"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12647393', + }, + ], + }, + { + key: 6, + name: '精选页信息流广告', + activityIds: ['com.huawei.android.thememanager.HwThemeManagerActivity'], + rules: [ + { + matches: + '[id="com.huawei.android.thememanager:id/announce_ad_close_btn"||id="com.huawei.android.thememanager:id/pps_lable_top"||id="com.huawei.android.thememanager:id/tv_btn_uninterested"||id="com.huawei.android.thememanager:id/pps_img_video_close"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12647614', + 'https://gkd-kit.gitee.io/import/12647653', + 'https://gkd-kit.gitee.io/import/12647655', + 'https://gkd-kit.gitee.io/import/12647650', + ] + }, + ], + }, + ], +});