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

export default defineGkdApp({
  id: 'com.xiaoenai.app',
  name: '小恩爱',
  groups: [
    {
      key: 6,
      name: '全屏广告',
      matchTime: 15000,
      actionMaximum: 1,
      resetMatch: 'app',
      rules: [
        {
          key: 1,
          fastQuery: true,
          activityIds: '.presentation.home.view.activity.HomeActivity',
          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="跳转微信"]',
          exampleUrls: 'https://e.gkd.li/3997eac2-4b0d-4adc-a00c-d7551ea4f364',
          snapshotUrls: 'https://i.gkd.li/i/13728018',
        },
        {
          key: 2,
          fastQuery: true,
          activityIds:
            'com.mzd.feature.launcher.view.activity.LauncherActivity',
          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] <2 FrameLayout[childCount=5] + FrameLayout[childCount=2] > [text^="立即" || text$="详情" || text^="了解" || text="去逛逛" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]',
          exampleUrls: 'https://e.gkd.li/e11364ec-62dc-483b-b8c9-28feab2563fb',
          snapshotUrls: 'https://i.gkd.li/i/13867878',
        },
      ],
    },
    {
      key: 7,
      name: '局部广告-信息流广告',
      rules: [
        {
          name: '字节广告SDK',
          fastQuery: true,
          activityIds:
            'com.xiaoenai.app.presentation.home.view.activity.HomeActivity',
          matches:
            '@ImageView[clickable=true][width<90][height<90] -3 ImageView <<n [id="com.xiaoenai.app:id/view_ad_tpl"]',
          snapshotUrls: 'https://i.gkd.li/i/13728026',
        },
      ],
    },
  ],
});
