feat(小步点): 广告弹窗(补充规则)、开屏广告(优化规则) (#1950)

* feat 广告弹窗(补充规则)

* feat 开屏广告(优化规则)
This commit is contained in:
Kun Jinkao 2023-11-10 00:01:07 +08:00 committed by GitHub
parent 55724b2ad0
commit 14a5d5ba5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,19 +7,42 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
activityIds: 'run.xbud.android.mvp.ui.other.SplashActivity',
rules: '[id="run.xbud.android:id/bodyLayout"] >n [text^="跳过"]',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: '[text^="跳过"][text.length<=10]',
snapshotUrls: 'https://i.gkd.li/import/12777125',
},
{
key: 1,
name: '首页广告弹窗',
name: '广告弹窗',
activityIds: 'run.xbud.android.mvp.ui.other.MainActivity',
rules:
'[id="run.xbud.android:id/ksad_tk_view"] >n @ViewGroup[clickable=true] > ImageView',
snapshotUrls: [
'https://i.gkd.li/import/12777133',
'https://i.gkd.li/import/12777134',
rules: [
{
key: 0,
name: '快手广告',
matches:
'[id="run.xbud.android:id/ksad_tk_view"] >n @ViewGroup[clickable=true] > ImageView',
snapshotUrls: [
'https://i.gkd.li/import/12777133',
'https://i.gkd.li/import/12777134',
],
},
{
key: 1,
name: '腾讯广告1',
matches:
'ImageView - LinearLayout < FrameLayout - FrameLayout > FrameLayout > ImageView',
snapshotUrls: 'https://i.gkd.li/import/13296371',
},
{
key: 2,
name: '腾讯广告2',
matches:
'ImageView -n FrameLayout > FrameLayout > FrameLayout > ImageView',
snapshotUrls: 'https://i.gkd.li/import/13296398',
},
],
},
],