forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.huawei.music.ts
130 lines (129 loc) · 3.87 KB
/
com.huawei.music.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.huawei.music',
name: '华为音乐',
groups: [
{
key: 0,
name: '开屏广告',
activityIds: ['com.android.mediacenter.PageActivity'],
rules: [
{
matches: '[id="com.huawei.hms.ads.uiengine:id/hiad_skip_text"]',
action: 'clickCenter',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12745222'],
},
],
},
// 若开启播放器时恰好首页在展示首页横幅广告,则在播放器下拉的推荐页面中会误触此规则导致点击广告(https://gkd-kit.gitee.io/import/13068854)
// {
// key: 1,
// name: '首页横幅广告',
// quickFind: true,
// activityIds: [
// 'com.huawei.android.launcher.unihome.UniHomeLauncher',
// 'com.android.mediacenter.MainActivity',
// ],
// rules: [
// {
// matches: 'TextView[id="com.huawei.music:id/ad_banner_tag"&&visibleToUser=true]',
// snapshotUrls: [
// 'https://gkd-kit.gitee.io/import/13068287',
// 'https://gkd-kit.gitee.io/import/13067243',
// ],
// },
// ],
// },
{
key: 2,
name: '广告反馈下拉窗',
quickFind: true,
activityIds: ['com.huawei.openalliance.ad.activity.FeedbackActivity'],
rules: [
{
matches:
'TextView[id="com.huawei.music:id/label_title"][text="直接关闭"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/13067574',
'https://gkd-kit.gitee.io/import/13067572',
'https://gkd-kit.gitee.io/import/13067571',
'https://gkd-kit.gitee.io/import/13067659',
'https://gkd-kit.gitee.io/import/13067665',
'https://gkd-kit.gitee.io/import/13067820',
],
},
],
},
{
key: 3,
name: '播放界面直播浮窗',
quickFind: true,
activityIds: ['com.android.mediacenter.MainActivity'],
rules: [
{
matches:
'TextView[id="com.huawei.music:id/live_info"] < LinearLayout -2 [id="com.huawei.music:id/close_button"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/13067649'],
},
],
},
{
key: 4,
name: '播放(音乐、视频)页面广告',
quickFind: true,
activityIds: ['com.android.mediacenter.MainActivity'],
rules: [
{
matches:
'TextView[id="com.huawei.music:id/ad_icon"&&visibleToUser=true]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/13067956',
'https://gkd-kit.gitee.io/import/13067978',
'https://gkd-kit.gitee.io/import/13067387',
],
},
],
},
{
key: 5,
name: '评论区广告',
quickFind: true,
activityIds: [
'com.android.mediacenter.comment.ui.CommentListMainActivity',
],
rules: [
{
matches: '[id="com.huawei.music:id/ad_icon"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/13067937'],
},
],
},
{
key: 6,
name: '视频播放页广告反馈',
quickFind: true,
activityIds: ['com.android.mediacenter.MainActivity'],
rules: [
{
matches: 'TextView[text="不感兴趣"][id$="title"][visibleToUser=true]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/13067986',
'https://gkd-kit.gitee.io/import/13067981',
],
},
],
},
{
key: 7,
name: '播放器上滑广告',
quickFind: true,
activityIds: ['com.android.mediacenter.MainActivity'],
rules: [
{
matches: 'ViewGroup > TextView[text="广告"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/13068935'],
},
],
},
],
});