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

export default defineGkdApp({
  id: 'client.android.yixiaotong',
  name: '乐校通',
  groups: [
    {
      key: 1,
      name: '全屏广告-弹窗广告',
      rules: [
        {
          key: 0,
          name: '腾讯广告',
          fastQuery: true,
          activityIds:
            'client.android.yixiaotong.v3.ui.appcontrol.bath.BathDetailActivity',
          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/13055837',
        },
        {
          key: 1,
          name: '快手广告-1',
          activityIds:
            'client.android.yixiaotong.v3.ui.appcontrol.bath.BathDetailActivity',
          matches:
            '[id="client.android.yixiaotong:id/ksad_tk_view"] >n ViewGroup + ViewGroup > @ViewGroup > ImageView',
          snapshotUrls: 'https://i.gkd.li/i/13060116',
        },
        {
          key: 2,
          name: '快手广告-2',
          fastQuery: true,
          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/13625511',
        },
      ],
    },
    {
      key: 2,
      name: '局部广告-卡片广告',
      activityIds: [
        'client.android.yixiaotong.v3.ui.V3MainActivity',
        'client.android.yixiaotong.v3.ui.appcontrol.bath.BathControlActivity',
        'client.android.yixiaotong.v3.ui.appcontrol.bath.BathDetailActivity',
      ],
      rules: [
        {
          key: 0,
          name: '腾讯广告',
          matches:
            'ImageView - FrameLayout - FrameLayout[childCount=1] > ImageView[childCount=0]',
          snapshotUrls: 'https://i.gkd.li/i/13451010',
        },
        {
          key: 1,
          name: '快手广告',
          fastQuery: true,
          matches:
            '@TextView[clickable=true][childCount=0][visibleToUser=true] + View > [visibleToUser=true][text="广告"] <<n [id="client.android.yixiaotong:id/ksad_container"]',
          snapshotUrls: 'https://i.gkd.li/i/13450887',
        },
        {
          key: 2,
          fastQuery: true,
          matches:
            '@ImageView[childCount=0][visibleToUser=true] < FrameLayout[childCount=1] - LinearLayout[childCount=2] > [text="下载应用" || text="立即下载" || text="查看详情" || text="领取优惠" || text="进入小程序" || text="了解更多"][visibleToUser=true]',
          exampleUrls:
            'https://m.gkd.li/57941037/ad8a1bbf-61b5-4a7e-8e16-5e0092f04b8c',
          snapshotUrls: 'https://i.gkd.li/i/14469848',
        },
        {
          key: 3,
          fastQuery: true,
          position: {
            left: 'width * 0.9585',
            top: 'width * 0.0424',
          },
          matches: '[vid="native_ad_tpbt_image_iv"]',
          exampleUrls:
            'https://m.gkd.li/57941037/ed6c2c12-ac17-40cc-9842-3dbc2a477d15',
          snapshotUrls: [
            'https://i.gkd.li/i/14469800',
            'https://i.gkd.li/i/14469876',
            'https://i.gkd.li/i/14469878',
          ],
        },
      ],
    },
  ],
});
