import { defineGkdApp } from '@gkd-kit/define';

export default defineGkdApp({
  id: 'com.bx.game.dgg',
  name: '看剧',
  groups: [
    {
      key: 1,
      name: '全屏广告-弹窗广告',
      desc: '点击关闭',
      rules: [
        {
          key: 0,
          activityIds:
            'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
          matches: '[text="反馈"] -2 @View > Image[childCount=0][text=""]',
          snapshotUrls: 'https://i.gkd.li/i/15335006',
        },
        {
          key: 1,
          fastQuery: true,
          activityIds: 'com.anythink.basead.ui.ATPortraitTranslucentActivity',
          matches: '[vid="anythink_myoffer_btn_close_id"]',
          snapshotUrls: 'https://i.gkd.li/i/15362931',
        },
        {
          key: 2,
          fastQuery: true,
          activityIds: 'com.bx.game.dgg.MainActivity',
          matches:
            'ImageView[childCount=0][text=null] < @ViewGroup[childCount=1][clickable=true][visibleToUser=true] < ViewGroup +n ViewGroup[childCount=2] > [text="广告"]',
          snapshotUrls: 'https://i.gkd.li/i/15362927',
        },
        {
          key: 3,
          fastQuery: true,
          activityIds: 'com.bx.game.dgg.MainActivity',
          matches:
            '@ImageView[childCount=0][text=null][desc=null][id=null][visibleToUser=true][width<90 && height<90] < FrameLayout[childCount=1][text=null][desc=null][id=null][parent.childCount>3] +n FrameLayout >(1,2) [text^="立即" || text$="详情" || text^="了解" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]',
          snapshotUrls: 'https://i.gkd.li/i/15400143',
        },
      ],
    },
    {
      key: 2,
      name: '通知提示-[温馨提示]弹窗',
      desc: '点击[我知道了]',
      fastQuery: true,
      matchTime: 10000,
      actionMaximum: 1,
      resetMatch: 'app',
      rules: [
        {
          activityIds: 'com.bx.game.dgg.MainActivity',
          matches:
            '@Button[desc="我知道了"][visibleToUser=true] < View <2 View < View < View < View < View < FrameLayout < [id="android:id/content"]',
          exampleUrls:
            'https://m.gkd.li/57941037/8a825661-5595-4577-835c-2a0b2d41bc14',
          snapshotUrls: 'https://i.gkd.li/i/15362930',
        },
      ],
    },
  ],
});
