feat(掌医课堂): 开屏广告, 退出确认弹窗 (#145)

* feat(掌医课堂): 开屏广告

* fix(掌医课堂): 开屏广告

* feat(掌医课堂): 退出确认弹窗

* fix(掌医课堂): 修改为确认按钮修改为以ID查找,增加准确性。

---------

Co-authored-by: dlh <du__th@163.com>
This commit is contained in:
dlh 2023-09-18 17:59:51 +08:00 committed by GitHub
parent e2175b3959
commit 6ae7d16d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,31 @@
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.zgnet.eClass',
name: '掌医课堂',
groups: [
{
key: 1,
name: '开屏广告',
activityIds: ['com.zgnet.eClass.ui.SplashActivity'],
rules: [
{
matches: 'TextView[id$="tv_close_time"&&text^="关闭"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12644260'],
},
],
},
{
key: 2,
enable: false,
name: '退出确认弹窗(默认关闭)',
rules: [
{
matches:
'[text*="确定要退出"] < LinearLayout +n LinearLayout > TextView[id$="tv_exit_sure"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12645513'],
},
],
},
],
});