feat(华为天气): 开屏广告-规则优化 (#1204)

close #1178
This commit is contained in:
Kun Jinkao 2023-10-19 00:46:20 +08:00 committed by GitHub
parent f0362d9a4b
commit 9ed4d404ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,13 @@ export default defineAppConfig({
name: '开屏广告',
activityIds: 'com.huawei.android.totemweather.WeatherHome',
matchLauncher: true,
rules: '[id="com.huawei.hms.ads.uiengine:id/hiad_skip_text"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12928975',
rules: [
{
matches: '[id="com.huawei.hms.ads.uiengine:id/hiad_skip_text"]',
action: 'clickCenter', // 根据 https://github.com/gkd-kit/subscription/pull/1180#issuecomment-1767735683 反馈,此处使用 clickCenter 事件。
snapshotUrls: 'https://gkd-kit.gitee.io/import/12928975',
},
],
},
],
});