From 02bc02880c19473da7d725ab3b111b73b9939b63 Mon Sep 17 00:00:00 2001 From: wanghongenpin Date: Fri, 30 Jan 2026 18:11:16 +0800 Subject: [PATCH] v1.2.5 --- lib/ui/configuration.dart | 8 ++++---- lib/ui/desktop/desktop.dart | 14 ++++++++------ lib/ui/mobile/mobile.dart | 14 ++++++++------ linux/build.sh | 2 +- pubspec.yaml | 4 ++-- windows/packaging/msix/make_config.yaml | 2 +- 6 files changed, 24 insertions(+), 20 deletions(-) diff --git a/lib/ui/configuration.dart b/lib/ui/configuration.dart index f5be567..4668c22 100644 --- a/lib/ui/configuration.dart +++ b/lib/ui/configuration.dart @@ -63,7 +63,7 @@ class ThemeModel { } class AppConfiguration { - static const String version = "1.2.4"; + static const String version = "1.2.5"; ValueNotifier globalChange = ValueNotifier(false); @@ -71,7 +71,7 @@ class AppConfiguration { Locale? _language; //是否显示更新内容公告 - bool upgradeNoticeV24 = true; + bool upgradeNoticeV25 = true; /// 是否启用画中画 ValueNotifier pipEnabled = ValueNotifier(Platform.isAndroid); @@ -199,7 +199,7 @@ class AppConfiguration { _theme = ThemeModel(mode: mode, useMaterial3: config['useMaterial3'] ?? true); _theme.color = config['themeColor'] ?? "Blue"; - upgradeNoticeV24 = config['upgradeNoticeV24'] ?? true; + upgradeNoticeV25 = config['upgradeNoticeV25'] ?? true; _language = config['language'] == null ? null : Locale.fromSubtags( @@ -251,7 +251,7 @@ class AppConfiguration { 'mode': _theme.mode.name, 'themeColor': _theme.color, 'useMaterial3': _theme.useMaterial3, - 'upgradeNoticeV24': upgradeNoticeV24, + 'upgradeNoticeV25': upgradeNoticeV25, "language": _language?.languageCode, "languageScript": _language?.scriptCode, "headerExpanded": headerExpanded, diff --git a/lib/ui/desktop/desktop.dart b/lib/ui/desktop/desktop.dart index bfa4f40..2ad51af 100644 --- a/lib/ui/desktop/desktop.dart +++ b/lib/ui/desktop/desktop.dart @@ -93,7 +93,7 @@ class _DesktopHomePagePageState extends State implements EventL proxyServer.addListener(this); panel = NetworkTabController(tabStyle: const TextStyle(fontSize: 16), proxyServer: proxyServer); - if (widget.appConfiguration.upgradeNoticeV24) { + if (widget.appConfiguration.upgradeNoticeV25) { WidgetsBinding.instance.addPostFrameCallback((_) { showUpgradeNotice(); }); @@ -162,7 +162,7 @@ class _DesktopHomePagePageState extends State implements EventL actions: [ TextButton( onPressed: () { - widget.appConfiguration.upgradeNoticeV24 = false; + widget.appConfiguration.upgradeNoticeV25 = false; widget.appConfiguration.flushConfig(); Navigator.pop(context); }, @@ -181,8 +181,9 @@ class _DesktopHomePagePageState extends State implements EventL '3. 脚本支持远程URL获取执行;\n' '4. HTTP Header 展示增加文本和表格切换;\n' '5. 增加 Request Param 列表展示;\n' - '6. 应用过滤列表增加是否显示系统应用;\n' - '7. 更新JSON深色主题色,以提高可见度和美观度;\n' + '6. 添加zlib解码支持\n' + '7. 应用过滤列表增加是否显示系统应用;\n' + '8. 更新JSON深色主题色,以提高可见度和美观度;\n' : 'Note: HTTPS capture is disabled by default — please install the certificate before enabling HTTPS capture.\n' 'Click the HTTPS capture (lock) icon, choose "Install Root Certificate", and follow the prompts to complete installation.\n\n' '1. Added import/export for Favorites.\n' @@ -190,8 +191,9 @@ class _DesktopHomePagePageState extends State implements EventL '3. Scripts can now be fetched from remote URLs and executed.\n' '4. HTTP header view now supports switching between text and table modes.\n' '5. Added a Request Params list view.\n' - '6. App filter list now includes an option to show system apps.\n' - '7. Updated JSON dark-theme colors for better visibility and appearance.\n', + '6. Add zlib decoding support.\n' + '7. App filter list now includes an option to show system apps.\n' + '8. Updated JSON dark-theme colors for better visibility and appearance.\n', style: const TextStyle(fontSize: 14)))); }); } diff --git a/lib/ui/mobile/mobile.dart b/lib/ui/mobile/mobile.dart index 9eedf27..b1a5818 100644 --- a/lib/ui/mobile/mobile.dart +++ b/lib/ui/mobile/mobile.dart @@ -117,7 +117,7 @@ class MobileHomeState extends State implements EventListener, Li proxyServer.addListener(this); proxyServer.start(); - if (widget.appConfiguration.upgradeNoticeV24) { + if (widget.appConfiguration.upgradeNoticeV25) { WidgetsBinding.instance.addPostFrameCallback((_) { showUpgradeNotice(); }); @@ -292,19 +292,21 @@ class MobileHomeState extends State implements EventListener, Li '3. 脚本支持远程URL获取执行;\n' '4. HTTP Header 展示增加文本和表格切换;\n' '5. 增加 Request Param 列表展示;\n' - '6. 应用过滤列表增加是否显示系统应用;\n' - '7. 更新JSON深色主题色,以提高可见度和美观度;\n' + '6. 添加zlib解码支持\n' + '7. 应用过滤列表增加是否显示系统应用;\n' + '8. 更新JSON深色主题色,以提高可见度和美观度;\n' : 'Note: HTTPS capture is disabled by default — please install the certificate before enabling HTTPS capture.\n\n' '1. Added import/export for Favorites.\n' '2. Added request decryption with configurable AES automatic body decryption.\n' '3. Scripts can now be fetched from remote URLs and executed.\n' '4. HTTP header view now supports switching between text and table modes.\n' '5. Added a Request Params list view.\n' - '6. App filter list now includes an option to show system apps.\n' - '7. Updated JSON dark-theme colors for better visibility and appearance.\n'; + '6. Added zlib decoding support.\n' + '7. App filter list now includes an option to show system apps.\n' + '8. Updated JSON dark-theme colors for better visibility and appearance.\n'; showAlertDialog(isCN ? '更新内容V${AppConfiguration.version}' : "What's new in V${AppConfiguration.version}", content, () { - widget.appConfiguration.upgradeNoticeV24 = false; + widget.appConfiguration.upgradeNoticeV25 = false; widget.appConfiguration.flushConfig(); }); } diff --git a/linux/build.sh b/linux/build.sh index f29a670..d42b8d5 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.2.4" >> package/DEBIAN/control +echo "Version: 1.2.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 816ddc4..bf7c988 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: proxypin description: ProxyPin publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 1.2.4+27 +version: 1.2.5+28 environment: sdk: '>=3.0.2 <4.0.0' @@ -23,7 +23,7 @@ dependencies: url: https://gitee.com/wanghongenpin/flutter-plugins.git path: packages/desktop_multi_window path_provider: ^2.1.5 - file_picker: ^10.3.8 + file_picker: ^10.3.10 proxy_manager: ^0.0.3 permission_handler: ^12.0.1 flutter_toastr: ^1.0.3 diff --git a/windows/packaging/msix/make_config.yaml b/windows/packaging/msix/make_config.yaml index e6d2437..bd57714 100644 --- a/windows/packaging/msix/make_config.yaml +++ b/windows/packaging/msix/make_config.yaml @@ -3,7 +3,7 @@ publisher_display_name: ProxyPin publisher: CN=8EC6F6C3-E66C-4189-8421-A6F2A451F552 identity_name: ProxyPin.ProxyPin publisher_url: https://github.com/wanghongenpin/proxypin -msix_version: 1.2.4.0 +msix_version: 1.2.5.0 logo_path: D:\IdeaProjects\proxypin\assets\icon.png capabilities: internetClient store: "true"