feat(拷贝漫画): 数个弹窗广告, 系统确认, 开屏检测时间延长 (#2550)

* Update com.copymanga.app.ts

* Update com.copymanga.app.ts

* Update com.copymanga.app.ts
This commit is contained in:
walklty
2023-11-28 19:44:41 +08:00
committed by GitHub
parent 2ef25c8009
commit 7da9e40984

View File

@@ -7,14 +7,13 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
name: '开屏广告', name: '开屏广告',
matchLauncher: true, matchTime: 30000,
activityIds: [ actionMaximum: 1,
'com.copymanga.app.MainActivity', resetMatch: 'app',
'com.reaper.flutter.reaper_flutter_plugin.activity.ReaperSplashActivity', quickFind: true,
],
rules: [ rules: [
{ {
matches: '[text *= "跳过" && text.length<6]', matches: '[text^="跳过"][text.length<6]',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12504489', 'https://i.gkd.li/import/12504489',
'https://i.gkd.li/import/12504507', 'https://i.gkd.li/import/12504507',
@@ -28,53 +27,88 @@ export default defineAppConfig({
key: 1, key: 1,
name: '内部弹窗广告', name: '内部弹窗广告',
matchLauncher: true, matchLauncher: true,
activityIds: ['com.copymanga.app.MainActivity'], activityIds: [
delay: 500, 'com.copymanga.app.MainActivity',
'com.reaper.flutter.reaper_flutter_plugin.activity.ReaperSplashActivity',
],
delay: 400,
rules: [ rules: [
{ {
key: 1,
activityIds: 'com.kwad.components.ad.interstitial', activityIds: 'com.kwad.components.ad.interstitial',
matches: 'TextView[text="跳过"]', matches: '@ViewGroup[clickable=true][visibleToUser=true] > ImageView',
snapshotUrls: 'https://i.gkd.li/import/12504486',
},
{
activityIds: 'com.kwad.components.ad.interstitial',
matches: 'ViewGroup[clickable=true] > ImageView',
snapshotUrls: 'https://i.gkd.li/import/12504488',
},
{
matches:
'ImageView < FrameLayout < FrameLayout +2 FrameLayout > ImageView',
snapshotUrls: 'https://i.gkd.li/import/12504501',
},
{
matches: 'ImageView + FrameLayout + FrameLayout > ImageView',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12504520', 'https://i.gkd.li/import/12504486',
'https://i.gkd.li/import/12661019', 'https://i.gkd.li/import/12504488',
], ],
}, },
{ {
matches: key: 2,
'@ImageView < FrameLayout[childCount=1] +2 FrameLayout[childCount=2] >2 TextView[text$="看看"][text^="去"]', matches: [
snapshotUrls: 'https://i.gkd.li/import/12504501', '[text^="立即" || text^="领取" || text^="了解" || text*="看"]', //软件正常元素都用的des,只有广告用text
'[id="android:id/content"] >2 FrameLayout[childCount=4|| childCount=3||childCount=2] > FrameLayout[childCount=5||childCount=6||childCount=8] > FrameLayout[childCount=1] > [name="android.view.View" || name="android.widget.ImageView"][text=null][visibleToUser=true]',
],
snapshotUrls: [
'https://i.gkd.li/import/12504520',
'https://i.gkd.li/import/12661019',
'https://i.gkd.li/import/13193877',
'https://i.gkd.li/import/12892156',
'https://i.gkd.li/import/12504501',
'https://i.gkd.li/import/13246786',
'https://i.gkd.li/import/13259082', // text^="领取"
'https://i.gkd.li/import/13372542', // View
],
}, },
{ {
matches: key: 3,
'TextView[text.length=4] < FrameLayout[childCount>=1] <2 FrameLayout[childCount>=2] -2 FrameLayout > ImageView', matches: [
snapshotUrls: 'https://i.gkd.li/import/12892156', //最后是ImageView否则和io/import/12504501误触 '[text^="京东"]',
'[text^="扭"]',
'ImageView[index=0][depth=9]',
],
snapshotUrls: [
'https://i.gkd.li/import/13233178',
'https://i.gkd.li/import/13259085',
],
}, },
{ {
key: 4,
activityIds: activityIds:
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity', 'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
matches: '[text="反馈"] -2 @View - Image', matches: '[text="反馈"] -2 @View - Image',
snapshotUrls: 'https://i.gkd.li/import/12925052', snapshotUrls: 'https://i.gkd.li/import/12925052',
}, },
{ {
key: 5,
activityIds: activityIds:
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity', 'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
matches: '[text="反馈"] -4 @View < View[childCount=7]', matches: '[text="反馈"] -4 @View < View[childCount=7]',
snapshotUrls: 'https://i.gkd.li/import/12925095', snapshotUrls: 'https://i.gkd.li/import/12925095',
}, },
{
key: 6,
matches:
'[id="com.copymanga.app:id/video_view"] + [id="com.copymanga.app:id/iv_close"]',
snapshotUrls: 'https://i.gkd.li/import/13332719',
},
{
key: 7,
// desc: '二步跳过广告_步骤1',
quickFind: true,
matches: '[text="跳过"]',
snapshotUrls: [
'https://i.gkd.li/import/13344156', // step1
],
},
{
key: 8,
preKeys: [7],
// desc: '二步跳过广告_步骤2',
matches: 'ImageView < ViewGroup[clickable=true][childCount=1]',
snapshotUrls: [
'https://i.gkd.li/import/13344156', // step2
],
},
], ],
}, },
{ {
@@ -109,5 +143,31 @@ export default defineAppConfig({
}, },
], ],
}, },
{
key: 4,
name: '自动确认线路',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
matches: '[desc="进入拷贝漫画"]',
snapshotUrls: 'https://i.gkd.li/import/13233179',
},
],
},
{
key: 5,
name: '关闭提示',
matchTime: 30000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
matches: '[desc="系统提示"] +n [desc="确定"]',
snapshotUrls: 'https://i.gkd.li/import/13233180',
},
],
},
], ],
}); });