tv增加geckoview内核

This commit is contained in:
mtvpls
2026-06-07 22:10:44 +08:00
parent e8ea89726b
commit 0e7e2b6629
7 changed files with 173 additions and 20 deletions
+13 -2
View File
@@ -9,6 +9,7 @@
- `VERSION_NAME`: APK 版本名
- `VERSION_CODE`: APK 版本号,整数
- `MIN_SDK`: 最低 Android API,标准版为 `23`Android 6+),兼容版为 `21`Android 5+
- `GECKOVIEW_VERSION`: GeckoView 依赖版本,仅 GeckoView 版本使用,默认 `126.0.20240526221752`
App 启动时会自动打开:
@@ -18,10 +19,20 @@ BASE_URL 去掉末尾 / 后 + /tv
## 特性
- GitHub Actions 默认构建个版本:`android6plus` 标准版和 `android5plus` 兼容版
- GitHub Actions 默认构建个版本:`webview-android6plus``webview-android5plus``geckoview-android6plus``geckoview-android5plus`
- GitHub Actions 未配置签名 secrets 时只构建 debug APK;配置完整签名 secrets 后只构建 release APK
- `webview` 版本使用系统 Android WebView,体积小但依赖设备内置 WebView 版本
- `gecko` 版本自带 GeckoView 浏览器内核,用于旧系统 WebView 无法兼容 Next.js 页面时测试
- 锁定横屏
- 支持 Android TV Launcher
- 允许 HTTP 明文访问
- 允许 HTTPS 页面加载 HTTP 视频/图片等混合内容
- 使用 `public/logo.png` 作为图标来源
- User-Agent 追加 `MoonTVPlusAndroidTV`
- `webview` 版本 User-Agent 追加 `MoonTVPlusAndroidTV WebView`
## 本地构建
```bash
gradle assembleWebviewDebug -PBASE_URL="http://192.168.1.10:3000"
gradle assembleGeckoDebug -PBASE_URL="http://192.168.1.10:3000"
```