feat(苏打校园): 开屏广告、弹窗广告 (#2249)

* feat 开屏广告

* feat 弹窗广告

* Update com.sodalife.sodax.ts

---------

Co-authored-by: 二刺螈 <i@songe.li>
This commit is contained in:
Kun Jinkao 2023-11-19 00:04:48 +08:00 committed by GitHub
parent 2eaac974ee
commit 3a046f9ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,40 @@
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.sodalife.sodax',
name: '苏打校园',
groups: [
{
key: 0,
name: '开屏广告',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: '[id="com.byted.pangle.m:id/tt_splash_skip_btn"]',
snapshotUrls: 'https://i.gkd.li/import/13400628',
},
{
key: 1,
name: '弹窗广告',
rules: [
{
key: 1,
name: '字节广告',
activityIds:
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
matches: '@Image < View +3 View > View > TextView[text$="广告"]',
snapshotUrls: 'https://i.gkd.li/import/13400643',
},
{
key: 10,
name: '双十一广告',
activityIds:
'com.sodalife.sodax.libraries.ads.gromore.GroMoreSplashActivity',
matches:
'ViewGroup[childCount=2] > ViewGroup + ViewGroup[clickable=true][childCount=1]',
snapshotUrls: 'https://i.gkd.li/import/13400653',
},
],
},
],
});