feat(凤凰新闻): 开屏广告, 信息流广告, 请求位置权限弹窗(默认关闭)(#306)

This commit is contained in:
Kun Jinkao 2023-09-23 23:55:07 +08:00 committed by GitHub
parent f8a61361f3
commit 4bf6203e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,69 @@
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.ifeng.news2',
name: '凤凰新闻',
groups: [
{
key: 0,
name: '开屏广告',
activityIds: 'com.ifeng.news2.activity.IfengTabMainActivity',
rules: '[id="com.ifeng.news2:id/skip_layout"] > [text="跳过"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12705529',
},
{
key: 1,
name: '信息流广告',
activityIds: 'com.ifeng.news2.activity.IfengTabMainActivity',
rules: [
{
key: 1,
matches:
'[id="com.ifeng.news2:id/adv_label"] + [id="com.ifeng.news2:id/normal_item_delete_wrap"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12705500',
},
{
key: 2,
matches:
'@[id="com.ifeng.news2:id/img_feedback_left_of_image"] - LinearLayout >(2) [id="com.ifeng.news2:id/adv_label"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12705508',
},
{
key: 3,
matches:
'[id="com.ifeng.news2:id/adv_icon"] + LinearLayout[id="com.ifeng.news2:id/normal_item_delete_wrap"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12705511',
},
{
key: 4,
matches:
'[id="com.ifeng.news2:id/adv_icon"] + TextView + [id="com.ifeng.news2:id/normal_item_delete_wrap"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12705518',
},
{
key: 5,
matches:
'[id="com.ifeng.news2:id/adv_label"] + [id="com.ifeng.news2:id/iv_item_del"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12705520',
},
{
preKeys: [1, 2, 3, 4, 5],
key: 9,
matches:
'@[id="com.ifeng.news2:id/dialog_dislike_feedback_normal_item_linearlayout"] > [text="不感兴趣"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12705505',
},
],
},
{
enable: true,
key: 10,
name: '请求位置权限弹窗',
desc: '自动点击取消',
activityIds: 'com.ifeng.news2.activity.IfengTabMainActivity',
rules:
'[text*="请求您的位置"] + [id="com.ifeng.news2:id/permission_cancel"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12705531',
},
],
});