From fd2bdd4cbf1161f264af8ba1a0a18a5f4c331ecd Mon Sep 17 00:00:00 2001 From: wanghongenpin Date: Thu, 24 Oct 2024 20:12:18 +0800 Subject: [PATCH] V1.1.5 Beta --- lib/ui/configuration.dart | 6 ++-- lib/ui/desktop/desktop.dart | 38 +++++++++++----------- lib/ui/desktop/request/request_editor.dart | 2 +- lib/ui/mobile/menu/menu.dart | 2 +- lib/ui/mobile/mobile.dart | 38 +++++++++++----------- lib/ui/mobile/request/request_editor.dart | 2 +- lib/utils/har.dart | 2 +- linux/build.sh | 2 +- pubspec.yaml | 2 +- 9 files changed, 47 insertions(+), 47 deletions(-) diff --git a/lib/ui/configuration.dart b/lib/ui/configuration.dart index 4dc021fc..ad4d8037 100644 --- a/lib/ui/configuration.dart +++ b/lib/ui/configuration.dart @@ -60,7 +60,7 @@ class AppConfiguration { Locale? _language; //是否显示更新内容公告 - bool upgradeNoticeV14 = true; + bool upgradeNoticeV15 = true; /// 是否启用画中画 ValueNotifier pipEnabled = ValueNotifier(Platform.isAndroid); @@ -177,7 +177,7 @@ class AppConfiguration { _theme = ThemeModel(mode: mode, useMaterial3: config['useMaterial3'] ?? true); _theme.color = config['themeColor'] ?? "Blue"; - upgradeNoticeV14 = config['upgradeNoticeV14'] ?? true; + upgradeNoticeV15 = config['upgradeNoticeV15'] ?? true; _language = config['language'] == null ? null : Locale.fromSubtags(languageCode: config['language']); pipEnabled.value = config['pipEnabled'] ?? true; pipIcon.value = config['pipIcon'] ?? false; @@ -222,7 +222,7 @@ class AppConfiguration { 'mode': _theme.mode.name, 'themeColor': _theme.color, 'useMaterial3': _theme.useMaterial3, - 'upgradeNoticeV14': upgradeNoticeV14, + 'upgradeNoticeV15': upgradeNoticeV15, "language": _language?.languageCode, "headerExpanded": headerExpanded, diff --git a/lib/ui/desktop/desktop.dart b/lib/ui/desktop/desktop.dart index bbef47e1..9eb3f1cd 100644 --- a/lib/ui/desktop/desktop.dart +++ b/lib/ui/desktop/desktop.dart @@ -88,7 +88,7 @@ class _DesktopHomePagePageState extends State implements EventL proxyServer.addListener(this); panel = NetworkTabController(tabStyle: const TextStyle(fontSize: 16), proxyServer: proxyServer); - if (widget.appConfiguration.upgradeNoticeV14) { + if (widget.appConfiguration.upgradeNoticeV15) { WidgetsBinding.instance.addPostFrameCallback((_) { showUpgradeNotice(); }); @@ -142,37 +142,37 @@ class _DesktopHomePagePageState extends State implements EventL actions: [ TextButton( onPressed: () { - widget.appConfiguration.upgradeNoticeV14 = false; + widget.appConfiguration.upgradeNoticeV15 = false; widget.appConfiguration.flushConfig(); Navigator.pop(context); }, child: Text(localizations.cancel)) ], - title: Text(isCN ? '更新内容V1.1.4' : "Update content V1.1.4", style: const TextStyle(fontSize: 18)), + title: Text(isCN ? '更新内容V1.1.5' : "Update content V1.1.5", style: const TextStyle(fontSize: 18)), content: Container( constraints: const BoxConstraints(maxWidth: 600), child: SelectableText( isCN ? '提示:默认不会开启HTTPS抓包,请安装证书后再开启HTTPS抓包。\n' '点击HTTPS抓包(加锁图标),选择安装根证书,按照提示操作即可。\n\n' - '1. 手机端增加底部导航,可在设置中切换;\n' - '2. 增加远程设备管理,可快速连接设备;\n' - '3. iOS支持抓取Flutter应用,需要通过设备管理连接到电脑开启IP层代理(Beta);\n' - '4. 工具箱支持Unicode编码;\n' - '5. 工具箱支持二维码编解码;\n' - '6. 工具箱支持查看安卓系统证书名称;\n' - '7. 高级重放支持指定时间执行;\n' - '8. 修复请求重写批量导入规则混乱问题;\n' + '1. 请求重写升级UI优化, 请求修改增加匹配数据查看;\n' + '2. 请求弹出菜单UI优化, 支持请求高亮;\n' + '3. 脚本内置File Api, 支持文件读取、写入等操作, 详细查看wiki文档;\n' + "4. 脚本内置MD5方法, md5('xxx');\n" + '5. 支持内存自动清理设置, 到内存限制自动清理请求;\n' + '6. 工具箱增加正则表达式, 支持匹配数据替换;\n' + '7. ios支持生成新根证书, 生成需要重新安装根证书;\n' + '8. 修复暗黑模式icon展示不清晰;\n' : 'Tips:By default, HTTPS packet capture will not be enabled. Please install the certificate before enabling HTTPS packet capture。\n' 'Click HTTPS Capture packets(Lock icon),Choose to install the root certificate and follow the prompts to proceed。\n\n' - '1. Mobile: Add bottom navigation bar,which can be switched in settings;\n' - '2. Support remote device management to quickly connect to devices;\n' - '3. IOS supports capturing Flutter applications, You need to connect to the computer through device management to enable IP layer proxy (Beta);\n' - '4. Toolbox supports Unicode encode;\n' - '5. Toolbox supports QR code encoding and decoding;\n' - '6. Toolbox supports viewing Android system certificate names;\n' - '7. Custom Repeat support for specified time execution;\n' - '8. Fix request rewrite batch import rule confusion;\n' + '1. Request to rewrite and upgrade UI optimization, request to modify and add matching data viewing;\n' + '2. Request pop-up menu UI optimization, support request highlighting;\n' + '3. The script has built-in File Api, which supports file reading, writing and other operations. For details, please refer to the wiki document;\n' + "4. The script has built-in MD5 method, md5('xxx');\n" + '5. Support memory automatic cleanup settings, memory limit automatic cleanup requests;\n' + '6. Toolbox adds regular expressions to support matching data replacement;\n' + '7. iOS supports generating new root certificates, which requires reinstalling the root certificate;\n' + '8. Fixed unclear display of dark mode icon;\n' '', style: const TextStyle(fontSize: 14)))); }); diff --git a/lib/ui/desktop/request/request_editor.dart b/lib/ui/desktop/request/request_editor.dart index 71bc71ca..07aabb21 100644 --- a/lib/ui/desktop/request/request_editor.dart +++ b/lib/ui/desktop/request/request_editor.dart @@ -256,7 +256,7 @@ class _HttpState extends State<_HttpWidget> { message = widget.message; body = TextEditingController(text: widget.message?.bodyAsString); if (widget.message?.headers == null && !widget.readOnly) { - initHeader["User-Agent"] = ["ProxyPin/1.1.4"]; + initHeader["User-Agent"] = ["ProxyPin/1.1.5"]; initHeader["Accept"] = ["*/*"]; return; } diff --git a/lib/ui/mobile/menu/menu.dart b/lib/ui/mobile/menu/menu.dart index 7d2de1c2..0d208fda 100644 --- a/lib/ui/mobile/menu/menu.dart +++ b/lib/ui/mobile/menu/menu.dart @@ -90,7 +90,7 @@ class MoreMenu extends StatelessWidget { child: ListTile( dense: true, leading: const Icon(Icons.highlight_outlined), - title: Text(localizations.highlight), + title: Text(localizations.keyword + localizations.highlight), onTap: () { navigator(context, const KeywordHighlight()); }, diff --git a/lib/ui/mobile/mobile.dart b/lib/ui/mobile/mobile.dart index c55d43ef..78873daf 100644 --- a/lib/ui/mobile/mobile.dart +++ b/lib/ui/mobile/mobile.dart @@ -115,7 +115,7 @@ class MobileHomeState extends State implements EventListener, Li proxyServer.addListener(this); proxyServer.start(); - if (widget.appConfiguration.upgradeNoticeV14) { + if (widget.appConfiguration.upgradeNoticeV15) { WidgetsBinding.instance.addPostFrameCallback((_) { showUpgradeNotice(); }); @@ -256,27 +256,27 @@ class MobileHomeState extends State implements EventListener, Li String content = isCN ? '提示:默认不会开启HTTPS抓包,请安装证书后再开启HTTPS抓包。\n\n' - '1. 手机端增加底部导航,可在设置中切换;\n' - '2. 增加远程设备管理,可快速连接设备;\n' - '3. iOS支持抓取Flutter应用,需要通过设备管理连接到电脑开启IP层代理(Beta);\n' - '4. 工具箱支持Unicode编码;\n' - '5. 工具箱支持二维码编解码;\n' - '6. 工具箱支持查看安卓系统证书名称;\n' - '7. 高级重放支持指定时间执行;\n' - '8. 修复请求重写批量导入规则混乱问题;\n' + '1. 请求重写升级UI优化, 请求修改增加匹配数据查看;\n' + '2. 请求弹出菜单UI优化, 支持请求高亮;\n' + '3. 脚本内置File Api, 支持文件读取、写入等操作, 详细查看wiki文档;\n' + "4. 脚本内置MD5方法, md5('xxx');\n" + '5. 支持内存自动清理设置, 到内存限制自动清理请求;\n' + '6. 工具箱增加正则表达式, 支持匹配数据替换;\n' + '7. ios支持生成新根证书, 生成需要重新安装根证书;\n' + '8. 修复暗黑模式icon展示不清晰;\n' : 'Tips:By default, HTTPS packet capture will not be enabled. Please install the certificate before enabling HTTPS packet capture。\n\n' 'Click HTTPS Capture packets(Lock icon),Choose to install the root certificate and follow the prompts to proceed。\n\n' - '1. Mobile: Add bottom navigation bar,which can be switched in settings;\n' - '2. Support remote device management to quickly connect to devices;\n' - '3. IOS supports capturing Flutter applications, You need to connect to the computer through device management to enable IP layer proxy (Beta);\n' - '4. Toolbox supports Unicode encode;\n' - '5. Toolbox supports QR code encoding and decoding;\n' - '6. Toolbox supports viewing Android system certificate names;\n' - '7. Custom Repeat support for specified time execution;\n' - '8. Fix request rewrite batch import rule confusion;\n' + '1. Request to rewrite and upgrade UI optimization, request to modify and add matching data viewing;\n' + '2. Request pop-up menu UI optimization, support request highlighting;\n' + '3. The script has built-in File Api, which supports file reading, writing and other operations. For details, please refer to the wiki document;\n' + "4. The script has built-in MD5 method, md5('xxx');\n" + '5. Support memory automatic cleanup settings, memory limit automatic cleanup requests;\n' + '6. Toolbox adds regular expressions to support matching data replacement;\n' + '7. iOS supports generating new root certificates, which requires reinstalling the root certificate;\n' + '8. Fixed unclear display of dark mode icon;\n' ''; - showAlertDialog(isCN ? '更新内容V1.1.4' : "Update content V1.1.4", content, () { - widget.appConfiguration.upgradeNoticeV14 = false; + showAlertDialog(isCN ? '更新内容V1.1.5' : "Update content V1.1.5", content, () { + widget.appConfiguration.upgradeNoticeV15 = false; widget.appConfiguration.flushConfig(); }); } diff --git a/lib/ui/mobile/request/request_editor.dart b/lib/ui/mobile/request/request_editor.dart index dc9b0654..428e04a1 100644 --- a/lib/ui/mobile/request/request_editor.dart +++ b/lib/ui/mobile/request/request_editor.dart @@ -243,7 +243,7 @@ class _HttpState extends State<_HttpWidget> with AutomaticKeepAliveClientMixin { message = widget.message; body = widget.message?.bodyAsString; if (widget.message?.headers == null && !widget.readOnly) { - initHeader["User-Agent"] = ["ProxyPin/1.1.4"]; + initHeader["User-Agent"] = ["ProxyPin/1.1.5"]; initHeader["Accept"] = ["*/*"]; return; } diff --git a/lib/utils/har.dart b/lib/utils/har.dart index 30c20cb0..12598eab 100644 --- a/lib/utils/har.dart +++ b/lib/utils/har.dart @@ -81,7 +81,7 @@ class Har { title = title.contains("ProxyPin") ? title : "[ProxyPin]$title"; har["log"] = { "version": "1.2", - "creator": {"name": "ProxyPin", "version": "1.1.4"}, + "creator": {"name": "ProxyPin", "version": "1.1.5"}, "pages": [ { "title": title, diff --git a/linux/build.sh b/linux/build.sh index be3b13c0..27fee43a 100644 --- a/linux/build.sh +++ b/linux/build.sh @@ -5,7 +5,7 @@ cd ../build/linux/x64/release rm -rf package mkdir -p package/DEBIAN echo "Package: ProxyPin" >> package/DEBIAN/control -echo "Version: 1.1.4" >> package/DEBIAN/control +echo "Version: 1.1.5" >> package/DEBIAN/control echo "Priority: optional" >> package/DEBIAN/control echo "Architecture: amd64" >> package/DEBIAN/control echo "Depends: ca-certificates" >> package/DEBIAN/control diff --git a/pubspec.yaml b/pubspec.yaml index 8e9392da..b834eee9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: network_proxy description: ProxyPin publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 1.1.5+14 +version: 1.1.5+15 environment: sdk: '>=3.0.2 <4.0.0'