chore: 清理项目中多余的示例、依赖和资源文件
本次提交删除了大量冗余的平台配置文件、示例项目构建产物、测试资源文件以及第三方插件的无关代码,包括: 1. 移除了fluttertoast、liquid_glass_easy等插件的全量示例项目文件 2. 删除了本地依赖的ohos模块缓存和构建配置 3. 清理了各种平台的图标、资源文件和gitignore配置 4. 调整了主项目安卓最小SDK版本配置 5. 添加了macos运行需要的权限配置
This commit is contained in:
@@ -18,19 +18,54 @@
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||||
<meta name="description" content="A new Flutter project.">
|
||||
<meta name="description" content="闲言 — 文字阅读更纯粹。句子阅读 + 壁纸制作 APP">
|
||||
|
||||
<!-- 浏览器最低版本要求: Chrome 100+ / Safari 16+ / Firefox 100+ / Edge 100+ -->
|
||||
<!-- 原因: WebGL 2.0 完整支持 + WebRTC + Fragment Shader + CSS backdrop-filter -->
|
||||
|
||||
<!-- iOS meta tags & icons -->
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<meta name="apple-mobile-web-app-title" content="xianyan">
|
||||
<meta name="apple-mobile-web-app-title" content="闲言">
|
||||
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
||||
|
||||
<title>xianyan</title>
|
||||
<title>闲言</title>
|
||||
<link rel="manifest" href="manifest.json">
|
||||
|
||||
<script>
|
||||
// 浏览器版本检测 — 低于最低版本时显示提示
|
||||
(function() {
|
||||
var minVersions = { chrome: 100, safari: 16, firefox: 100, edge: 100 };
|
||||
var ua = navigator.userAgent;
|
||||
var browser = null, version = 0;
|
||||
|
||||
if (ua.indexOf('Chrome/') > -1 && ua.indexOf('Edg/') === -1) {
|
||||
browser = 'chrome'; version = parseInt(ua.match(/Chrome\/(\d+)/)[1], 10);
|
||||
} else if (ua.indexOf('Edg/') > -1) {
|
||||
browser = 'edge'; version = parseInt(ua.match(/Edg\/(\d+)/)[1], 10);
|
||||
} else if (ua.indexOf('Firefox/') > -1) {
|
||||
browser = 'firefox'; version = parseInt(ua.match(/Firefox\/(\d+)/)[1], 10);
|
||||
} else if (ua.indexOf('Safari/') > -1 && ua.indexOf('Chrome/') === -1) {
|
||||
browser = 'safari'; version = parseInt(ua.match(/Version\/(\d+)/)[1], 10);
|
||||
}
|
||||
|
||||
if (browser && minVersions[browser] && version < minVersions[browser]) {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.body.innerHTML =
|
||||
'<div style="display:flex;align-items:center;justify-content:center;height:100vh;' +
|
||||
'font-family:system-ui,sans-serif;text-align:center;padding:32px;color:#333;">' +
|
||||
'<div><h2>浏览器版本过低</h2>' +
|
||||
'<p>闲言需要以下浏览器版本才能正常运行:</p>' +
|
||||
'<ul style="text-align:left;display:inline-block;line-height:2;">' +
|
||||
'<li>Chrome 100+</li><li>Safari 16+</li><li>Firefox 100+</li><li>Edge 100+</li>' +
|
||||
'</ul><p>请升级您的浏览器后重试。</p></div></div>';
|
||||
});
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<script src="flutter_bootstrap.js" async></script>
|
||||
|
||||
Reference in New Issue
Block a user