feat(CFMOTO): 开屏广告、弹窗广告 (#2255)

* feat 开屏广告

* feat 弹窗广告
This commit is contained in:
Kun Jinkao 2023-11-20 20:41:56 +08:00 committed by GitHub
parent 5f460b17f3
commit 6d19c7923e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,32 @@
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.lxt.cfmoto',
name: 'CFMOTO',
groups: [
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: '[text^="跳过"][text.length<=10]',
snapshotUrls: 'https://i.gkd.li/import/13401968',
},
{
key: 1,
name: '弹窗广告',
rules: [
{
key: 1,
name: '首页弹窗广告',
activityIds: 'com.cfmoto.oilmoto.ui.MainCfActivity',
matches:
'RelativeLayout[childCount=2] > [id="com.lxt.cfmoto:id/image"] + [id="com.lxt.cfmoto:id/closeClick"]',
snapshotUrls: 'https://i.gkd.li/import/13401967',
},
],
},
],
});