feat(华为天气): 开屏广告(优化规则)、广告卡片 (#1662)

* feat 广告卡片

* perf 开屏广告(优化规则)
This commit is contained in:
Kun Jinkao
2023-11-01 00:32:45 +08:00
committed by GitHub
parent f02aca4f2d
commit 8795fa3a04

View File

@@ -7,8 +7,10 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
name: '开屏广告', name: '开屏广告',
activityIds: 'com.huawei.android.totemweather.WeatherHome', quickFind: true,
matchLauncher: true, matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [ rules: [
{ {
matches: '[id="com.huawei.hms.ads.uiengine:id/hiad_skip_text"]', matches: '[id="com.huawei.hms.ads.uiengine:id/hiad_skip_text"]',
@@ -17,5 +19,14 @@ export default defineAppConfig({
}, },
], ],
}, },
{
key: 1,
name: '广告卡片',
quickFind: true,
activityIds:
'com.huawei.android.totemweather.composite.MarketCompositeActivity',
rules: '[id="com.huawei.android.totemweather:id/promote_ad_cancel"]',
snapshotUrls: 'https://i.gkd.li/import/13218197',
},
], ],
}); });