diff --git a/CHANGELOG.md b/CHANGELOG.md index c6a3781..d08c302 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,158 +1,13 @@ # Changelog -All notable changes to this project will be documented in this file. +## 1.0.1 ---- +### Added +- 添加了支持 OpenHarmony 平台的 wakelock_plus 库 +- 依赖版本:wakelock_plus (git: https://gitcode.com/openharmony-sig/fluttertpc_wakelock_plus.git, ref: br_v1.4.0_ohos) -## [1.3.9] - 2026-03-31 +## 1.0.0 -### 新增 -- 🆔 **UDID 设备信息显示** - - 在应用信息页面的设备信息列表中添加 UDID 显示 - - 使用 `flutter_udid` 库获取跨平台设备唯一标识 - - 支持点击复制 UDID 功能,带主题色 SnackBar 提示 - - 将 AppInfoPage 从 StatelessWidget 改为 StatefulWidget - - 添加 `_loadUdid()` 方法异步加载 UDID - - 在技术栈卡片中添加 flutter_udid 说明 - - 在开源协议对话框中添加 flutter_udid 条目 - - 涉及文件: - - `lib/views/profile/app-info.dart` - 添加 UDID 获取和显示 - -### 升级 -- 📦 **flutter_udid 库升级至 4.1.2** - - 升级本地 flutter_udid 包到最新版本 4.1.2 - - Android 平台:更新 Gradle 到 8.5.0,Kotlin 到 2.0.21,使用新的 FlutterPlugin API - - iOS 平台:替换 SAMKeychain 为 KeychainAccess,支持 iOS 13.0+ - - MacOS 平台:使用 KeychainAccess 和 IOKit 获取硬件 UUID - - HarmonyOS 平台:保持 3.0.0 版本,使用 OAID 获取设备标识 - - 解决 Gradle 依赖冲突(jcenter 废弃问题) - - 统一 JVM 目标版本为 17 - - 涉及文件: - - `packages/flutter_udid/pubspec.yaml` - 更新版本和平台配置 - - `packages/flutter_udid/android/build.gradle` - 更新 Gradle 和 Kotlin 版本 - - `packages/flutter_udid/android/src/main/kotlin/.../FlutterUdidPlugin.kt` - 更新插件 API - - `packages/flutter_udid/ios/flutter_udid.podspec` - 更新依赖和部署目标 - - `packages/flutter_udid/ios/Classes/SwiftFlutterUdidPlugin.swift` - 更新 KeychainAccess - - `packages/flutter_udid/macos/Classes/FlutterUdidPlugin.swift` - 更新实现 - -### 新增 -- 👥 **QQ 交流群卡片** - - 在了解我们页面的"官方网站"卡片下方添加 QQ 群卡片 - - 群号显示:271129018 - - 点击群号可复制到剪贴板 - - 蓝色主题色(Icons.group) - - 提示"💡 点击群号可复制" - - 涉及文件: - - `lib/views/profile/settings/learn-us.dart` - 添加 QQ 群卡片 - ---- - -## [1.3.8] - 2026-03-31 - -### 新增 -- 🎛️ **隐藏次要按钮功能** - - 在功能设置页面添加"隐藏次要按钮"开关 - - 开启后隐藏主页的"上一条"和"分享"悬浮按钮 - - 默认关闭,状态保存到 SharedPreferences - - 使用 `SecondaryButtonsManager` 单例管理状态 - - 实时响应开关状态变化,无需重启应用 - - 涉及文件: - - `lib/views/profile/settings/app_fun.dart` - 添加开关和状态管理 - - `lib/views/home/home-load.dart` - 添加 SecondaryButtonsManager 管理类 - - `lib/views/home/home_page.dart` - 使用 ValueListenableBuilder 监听状态变化 - ---- - -## [1.3.7] - 2026-03-31 - -### 新增 -- 📸 **诗词卡片截图分享功能** - - 在主页点赞按钮上方添加悬浮分享按钮,使用 📤 icon - - 点击按钮可将当前诗词卡片生成高清图片并分享 - - 使用 `RepaintBoundary` 和 `GlobalKey` 实现 Widget 截图 - - 集成 `share_plus` 库实现跨平台图片分享 - - 包含生成中、成功、失败的用户提示 - - 涉及文件: - - `lib/views/home/home_components.dart` - 添加 ShareImageUtils 工具类和 FloatingShareButton 组件 - - `lib/views/home/home_page.dart` - 添加截图 Key 和分享按钮布局 - - `lib/views/home/home_part.dart` - 添加 RepaintBoundary 支持截图 - ---- - -## [1.3.6] - 2026-03-31 - -### 优化 -- 🏷️ **文件重命名与统一** - - 将 `sqlite_storage_controller.dart` 重命名为 `shared_preferences_storage_controller.dart` - - 将类名 `SQLiteStorageController` 重命名为 `SharedPreferencesStorageController` - - 更新所有引用该文件的导入语句和类名调用 - - 涉及文件: - - `lib/main.dart` - - `lib/controllers/history_controller.dart` - - `lib/views/profile/profile_page.dart` - - `lib/views/profile/level/poetry.dart` - - `lib/views/profile/level/distinguish.dart` - - 保持功能不变,仅统一命名规范 - ---- - -## [1.3.5] - 2026-03-30 - -### 新增 -- 📜 **投稿记录功能** - - 新增投稿记录页面 `lib/views/profile/expand/tougao.dart` - - 显示历史投稿记录列表,按时间倒序排列 - - 支持展开查看详细信息(分类、诗人和标题、关键词、平台、介绍) - - 提供清空所有记录功能(带确认提示) - - 修改 `lib/views/profile/expand/manu-script.dart` - - 在AppBar添加历史记录图标按钮,点击跳转至记录页面 - - 投稿成功后自动保存记录到SharedPreferences - - 最多保存50条记录,超出时自动删除最早的记录 - ---- - -## 软件特性功能 - -### 已开发完成 -- 🎛️ **隐藏次要按钮功能** - 在功能设置页面添加开关、开启后隐藏主页的"上一条"和"分享"悬浮按钮、默认关闭、状态保存到SharedPreferences、使用SecondaryButtonsManager单例管理、实时响应开关状态变化无需重启 - - 优先级:3 -- 📸 **诗词卡片截图分享功能** - 主页点赞按钮上方添加悬浮分享按钮、点击生成诗词卡片高清图片并分享、使用RepaintBoundary和GlobalKey实现Widget截图、集成share_plus库实现跨平台分享、包含生成中/成功/失败提示 - - 优先级:4 -- 📜 **诗词投稿功能** - 新增投稿页面、支持诗词收录申请表单、包含参考语句/分类选择/诗人和标题/关键词/诗词介绍/人机验证、实现相似度检测防止重复提交、平台字段自动获取设备类型 - - 优先级:3 -- ⚡ **离线数据下载优化** - 添加取消下载功能、下载过程中显示取消按钮、优化下载状态显示避免页面卡死、取消下载时显示相应提示 - - 优先级:4 -- 🌐 **网络状态自动检测** - 个人卡片加载时自动检测网络状态、无网络时自动调整为离线状态、避免网络异常导致的错误 - - 优先级:3 -- 📊 **服务器信息显示** - 在离线数据页面添加服务器信息卡片、显示API地址/版本/频率限制等信息 - - 优先级:2 -- 📱 **离线数据下载功能增强** - 新增下载类型选择(诗句和答题)、诗句数量选项(20/30/60/100条)、答题数量选项(20/50/80/100条)、100条下载需加入用户体验计划、实现下载一条写入一条、取消下载时保存已下载数据、实时更新缓存状态、返回上一页继续后台下载、清空缓存时弹窗选择清空内容、缓存状态同时显示诗句和答题数量 - - 优先级:5 -- �� **已知bug列表功能** - 从下到上弹出页面显示已知bug、解决方法和解决时间、支持下拉刷新和滚动查看、显示bug优先级和状态、提供详细解决方案描述、显示影响用户范围和时间信息 -- 📜 **投稿记录功能** - 投稿记录页面显示历史投稿列表、按时间倒序排列、支持展开查看详细信息、提供清空记录功能、投稿成功后自动保存到SharedPreferences、最多保存50条记录 -- 🗳️ **投票功能完整实现** - 用户登录/注册、获取投票列表、投票详情、提交投票、投票结果展示、API服务基础URL修改、登录注册逻辑简化(只需用户名、默认密码123456、自动注册登录、设备标识)、投票页面调试功能、user_identifier增加Flutter后缀、setState调用安全修复(添加mounted检查)、投票登录状态持久化修复(添加Cookie管理器支持PHP Session认证) -- 🎨 **个人卡片标签栏布局优化** - 将标签栏区域一分为二,左侧区域可以点击展开/收起个人卡片 -- 🎲 **题目随机化功能** - 进入答题页面时调用 fetch 接口获取新题,使用 Fisher-Yates 算法打乱题目 ID 顺序 -- 💬 **答对答错反馈信息修复** - 当 API 返回的提示信息为空时,自行添加提示内容 -- 📚 **App 自行管理题目 ID** - 实现题目 ID 管理逻辑,不再随机生成 -- 🔧 **API 接口路径和参数最终修复** - 确认 API 路径,调整随机题目 ID 范围 -- 🔧 **API 接口路径和参数修复** - 修复 API 路径和参数,使用正确的新 API 接口 -- 🐛 **HttpResponse 处理修复** - 修复 HttpResponse 对象处理方式,使用正确的属性访问 -- 🔧 **API 请求参数更新** - 根据新的 API 文档更新所有请求参数 -- 📊 **个人页面统计数字动态化** - 从SharedPreferences读取真实的答题统计数据 -- 📝 **记录页显示问题修复** - 修复答题记录页面显示未知题目和标签的问题 -- 📋 **答题统计弹窗功能** - 显示详细的答题统计数据,支持复制发送给AI评估 -- 📝 **诗词答题功能** - 完整的答题页面,支持题目加载、答案提交、提示获取 -- 🕐 **中国十二时辰制时间显示** - 时间显示改为十二时辰(子丑寅卯辰巳午未申酉戌亥) -- 🌤️ **天气功能集成** - 集成天气API获取城市、天气状态和温度 -- 📚 **朝代信息显示** - 在诗人名称左侧添加朝代信息显示 -- 🎨 **卡片样式优化** - 经典和现代样式颜色统一,毛玻璃样式优化 -- 🐛 **卡片设置页面重复打开问题修复** - 使用 router.replaceUrl 替换当前页面,避免堆叠 -- 📐 **2x2卡片布局优化** - 移除天气按钮组件,保留城市名称显示 -- 🌐 **离线模式支持** - 新增 `OfflineDataManager` 类管理离线数据加载、离线状态时从本地缓存加载诗句、在线状态时从网络加载、支持循环加载本地缓存的诗句、离线模式下隐藏点赞按钮、无缓存时显示网络错误提示、优化数据加载逻辑 -- 🔄 **个人卡片在线/离线状态切换** - 在个人卡片tips卡片内添加在线状态开关、开关状态保存到SharedPreferences、关闭后切换为离线状态、支持点击tips卡片切换祝福语功能、优化开关布局、状态切换时显示气泡消息提示 - -### 开发进度 -- 🏗️ **HarmonyOS桌面小组件** - 开发中,包含2x2布局、天气显示、诗句展示等功能 - - 优先级:3 -getx 进入 \ No newline at end of file +### Initial Release +- 项目初始化 +- 基础功能实现 \ No newline at end of file diff --git a/analysis_options.yaml b/analysis_options.yaml index 0d29021..bb5042e 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -9,6 +9,11 @@ # packages, and plugins designed to encourage good coding practices. include: package:flutter_lints/flutter.yaml +# 排除 packages 文件夹的分析 +analyzer: + exclude: + - packages/** + linter: # The lint rules applied to this project can be customized in the # section below to disable rules from the `package:flutter_lints/flutter.yaml` diff --git a/lib/views/profile/app-info.dart b/lib/views/profile/app-info.dart index 3525289..584fc2b 100644 --- a/lib/views/profile/app-info.dart +++ b/lib/views/profile/app-info.dart @@ -140,7 +140,7 @@ class _AppInfoPageState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text( - 'Poes', + '情景诗词', style: TextStyle( fontSize: 26, fontWeight: FontWeight.bold, @@ -149,7 +149,7 @@ class _AppInfoPageState extends State { ), const SizedBox(height: 6), Text( - '情景诗词 · 应用信息', + 'Poes · 应用信息', style: TextStyle( fontSize: 13, color: Colors.white.withValues(alpha: 0.85), @@ -178,9 +178,27 @@ class _AppInfoPageState extends State { ), const SizedBox(width: 6), const Text( - '版本 1.2', + '框架 1.3', style: TextStyle(fontSize: 12, color: Colors.white), ), + const SizedBox(width: 8), + Container( + padding: const EdgeInsets.symmetric( + horizontal: 8, + vertical: 2, + ), + decoration: BoxDecoration( + color: Colors.white.withValues(alpha: 0.2), + borderRadius: BorderRadius.circular(4), + ), + child: const Text( + '软件版本 1.5', + style: TextStyle( + fontSize: 10, + color: Colors.white, + ), + ), + ), ], ), ), @@ -231,10 +249,34 @@ class _AppInfoPageState extends State { ), ), const Divider(height: 1), - _buildInfoItem('Flutter', '跨平台UI框架', Icons.flutter_dash), - _buildInfoItem('Dart', '编程语言', Icons.code), - _buildInfoItem('shared_preferences', '本地存储', Icons.storage), - _buildInfoItem('flutter_udid', '设备唯一标识', Icons.perm_identity), + // 2x2 网格布局展示技术栈 + Padding( + padding: const EdgeInsets.all(16), + child: GridView.count( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + crossAxisCount: 2, + mainAxisSpacing: 12, + crossAxisSpacing: 12, + childAspectRatio: 2.2, + children: [ + _buildTechStackItem( + 'Flutter', + '跨平台UI框架', + Icons.flutter_dash, + Colors.blue, + ), + _buildTechStackItem('Dart', '编程语言', Icons.code, Colors.teal), + _buildTechStackItem('SP', '本地存储', Icons.storage, Colors.orange), + _buildTechStackItem( + 'dio', + '网络处理', + Icons.network_check, + Colors.purple, + ), + ], + ), + ), ], ), ); @@ -335,12 +377,12 @@ class _AppInfoPageState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text( - '开源协议', + '开源框架', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w500), ), const SizedBox(height: 2), Text( - 'BSD 3-Clause License', + 'Flutter SDK', style: TextStyle(fontSize: 12, color: Colors.grey[500]), ), ], @@ -823,6 +865,59 @@ class _AppInfoPageState extends State { ); } + // 2x2 网格技术栈项 + Widget _buildTechStackItem( + String title, + String value, + IconData icon, + Color color, + ) { + return Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: color.withAlpha(20), + borderRadius: BorderRadius.circular(12), + border: Border.all(color: color.withAlpha(50), width: 1), + ), + child: Row( + children: [ + Container( + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: color.withAlpha(30), + borderRadius: BorderRadius.circular(8), + ), + child: Icon(icon, size: 20, color: color), + ), + const SizedBox(width: 10), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + title, + style: TextStyle( + fontSize: 14, + fontWeight: FontWeight.w600, + color: color, + ), + overflow: TextOverflow.ellipsis, + ), + const SizedBox(height: 2), + Text( + value, + style: TextStyle(fontSize: 11, color: Colors.grey[600]), + overflow: TextOverflow.ellipsis, + ), + ], + ), + ), + ], + ), + ); + } + Widget _buildInfoItem(String title, String value, IconData icon) { return Padding( padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12), diff --git a/lib/views/profile/components/pop-menu.dart b/lib/views/profile/components/pop-menu.dart index 125b309..b6886ae 100644 --- a/lib/views/profile/components/pop-menu.dart +++ b/lib/views/profile/components/pop-menu.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:share_plus/share_plus.dart'; import '../../../constants/app_constants.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; class PopMenu extends StatelessWidget { final VoidCallback? onRefresh; @@ -41,6 +42,46 @@ class PopMenu extends StatelessWidget { } } + static Future toggleScreenWake(BuildContext context) async { + try { + // 检查当前状态 + final bool isEnabled = await WakelockPlus.enabled; + + // 切换状态 + if (isEnabled) { + await WakelockPlus.disable(); + if (context.mounted) { + ScaffoldMessenger.of( + context, + ).showSnackBar(const SnackBar(content: Text('屏幕常亮已关闭'))); + } + } else { + await WakelockPlus.enable(); + if (context.mounted) { + ScaffoldMessenger.of( + context, + ).showSnackBar(const SnackBar(content: Text('屏幕常亮已开启'))); + } + } + } catch (e) { + if (context.mounted) { + showDialog( + context: context, + builder: (context) => AlertDialog( + title: const Text('提示'), + content: const Text('该设备不支持屏幕常亮功能'), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context), + child: const Text('确定'), + ), + ], + ), + ); + } + } + } + static void show( BuildContext context, { VoidCallback? onRefresh, @@ -89,9 +130,9 @@ class PopMenu extends StatelessWidget { }), _buildBottomSheetItem( context, - '扫描二维码', - Icons.qr_code_scanner, - onScanQr, + '屏幕常亮', + Icons.screen_lock_rotation, + () => toggleScreenWake(context), ), _buildBottomSheetItem(context, '夜间模式', Icons.dark_mode, onDarkMode), const SizedBox(height: 20), diff --git a/lib/views/profile/profile_page.dart b/lib/views/profile/profile_page.dart index ee2ad98..1b3b097 100644 --- a/lib/views/profile/profile_page.dart +++ b/lib/views/profile/profile_page.dart @@ -913,7 +913,7 @@ class _ProfilePageState extends State context, onRefresh: () => refreshData(), onEdit: () => _showSnackBar('编辑资料'), - onScanQr: () => _showSnackBar('扫描二维码'), + onScanQr: () => _showSnackBar('了解软件功能'), onDarkMode: () => _showSnackBar('夜间模式'), onSettings: () { Future.delayed(const Duration(milliseconds: 100), () { diff --git a/lib/views/profile/settings/app_fun.dart b/lib/views/profile/settings/app_fun.dart index 280c0cc..a6430d1 100644 --- a/lib/views/profile/settings/app_fun.dart +++ b/lib/views/profile/settings/app_fun.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:shared_preferences/shared_preferences.dart'; import '../../../constants/app_constants.dart'; import '../../../utils/audio_manager.dart'; @@ -395,6 +396,7 @@ class _AppFunSettingsPageState extends State { Text('1. 长按桌面空白处'), Text('2. 选择「情景诗词」卡片'), Text('3. 添加后点击桌面卡片即可设置'), + Text('4. 后续版本支持在应用内设置卡片'), SizedBox(height: 12), Text( '注意:该页面设置对鸿蒙设备不生效', @@ -404,8 +406,12 @@ class _AppFunSettingsPageState extends State { ), actions: [ TextButton( - onPressed: () => Navigator.of(context).pop(), - child: const Text('取消'), + onPressed: () { + Navigator.of(context).pop(); + // 返回桌面 + SystemNavigator.pop(); + }, + child: const Text('前往桌面'), ), ElevatedButton( onPressed: () { diff --git a/lib/views/profile/settings/learn-us.dart b/lib/views/profile/settings/learn-us.dart index e146985..0012f5a 100644 --- a/lib/views/profile/settings/learn-us.dart +++ b/lib/views/profile/settings/learn-us.dart @@ -422,7 +422,7 @@ class LearnUsPage extends StatelessWidget { ), const SizedBox(height: 4), Text( - '专注诗词文化传播', + '专注文字文化领域', style: TextStyle(fontSize: 13, color: Colors.grey[600]), ), ], @@ -431,6 +431,53 @@ class LearnUsPage extends StatelessWidget { ], ), ), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), + child: Row( + children: [ + Container( + width: 40, + height: 40, + decoration: BoxDecoration( + gradient: LinearGradient( + colors: [ + Colors.blue.withValues(alpha: 0.1), + Colors.blue.withValues(alpha: 0.05), + ], + ), + borderRadius: BorderRadius.circular(8), + ), + child: const Center( + child: Icon(Icons.email, color: Colors.blue, size: 20), + ), + ), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + '商务合作&侵权申诉&联系我们', + style: TextStyle( + fontSize: 14, + fontWeight: FontWeight.w500, + ), + ), + const SizedBox(height: 2), + const Text( + '2821981550@qq.com', + style: TextStyle( + fontSize: 13, + color: Colors.blue, + decoration: TextDecoration.underline, + ), + ), + ], + ), + ), + ], + ), + ), ], ), ); diff --git a/lib/views/profile/theme/app-diy.dart b/lib/views/profile/theme/app-diy.dart index 7bae704..fc6cf32 100644 --- a/lib/views/profile/theme/app-diy.dart +++ b/lib/views/profile/theme/app-diy.dart @@ -60,6 +60,58 @@ class _AppDiyPageState extends State { super.initState(); _loadSettings(); _startScrolling(); + // 延迟显示开发中提示对话框 + WidgetsBinding.instance.addPostFrameCallback((_) { + _showDevNoticeDialog(); + }); + } + + // 显示开发中提示对话框 + void _showDevNoticeDialog() { + showDialog( + context: context, + barrierDismissible: false, + builder: (BuildContext context) { + return AlertDialog( + title: Row( + children: [ + Icon(Icons.construction, color: AppConstants.primaryColor), + const SizedBox(width: 8), + const Text('开发中'), + ], + ), + content: const Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '个性化设置开发中', + style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16), + ), + SizedBox(height: 12), + Text('• 当前设置仅当前页面生效'), + Text('• 后续版本将陆续支持'), + Text('• 可提前预览主题风格设置'), + SizedBox(height: 12), + Text( + '感谢您的耐心等待!', + style: TextStyle(color: Colors.grey, fontSize: 12), + ), + ], + ), + actions: [ + ElevatedButton( + onPressed: () => Navigator.of(context).pop(), + style: ElevatedButton.styleFrom( + backgroundColor: AppConstants.primaryColor, + foregroundColor: Colors.white, + ), + child: const Text('我知道了'), + ), + ], + ); + }, + ); } @override @@ -217,6 +269,13 @@ class _AppDiyPageState extends State { }); }, icon: Icons.navigation), + _buildSwitchItem('转场动画', _enableAnimation, (value) { + setState(() { + // _enableAnimation = value; + _saveSettings(); + }); + }, icon: Icons.track_changes), + // 设计风格 _buildSection('设计风格'), _buildDesignStyleCard(), diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index f606be2..780d732 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -8,15 +8,19 @@ import Foundation import audioplayers_darwin import device_info_plus import flutter_udid +import package_info_plus import path_provider_foundation import share_plus import shared_preferences_foundation +import wakelock_plus func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AudioplayersDarwinPlugin.register(with: registry.registrar(forPlugin: "AudioplayersDarwinPlugin")) DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) FlutterUdidPlugin.register(with: registry.registrar(forPlugin: "FlutterUdidPlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) + WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin")) } diff --git a/pubspec.lock b/pubspec.lock index 0845cb1..2f9e845 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,6 +1,14 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.7.0" async: dependency: transitive description: @@ -145,6 +153,14 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.0.9" + dbus: + dependency: transitive + description: + name: dbus + sha256: d0c98dcd4f5169878b6cf8f6e0a52403a9dff371a3e2f019697accbf6f44a270 + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.7.12" device_info_plus: dependency: transitive description: @@ -335,6 +351,22 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.0.6" + package_info_plus: + dependency: transitive + description: + name: package_info_plus + sha256: "468c26b4254ab01979fa5e4a98cb343ea3631b9acee6f21028997419a80e1a20" + url: "https://pub.flutter-io.cn" + source: hosted + version: "9.0.1" + package_info_plus_platform_interface: + dependency: transitive + description: + name: package_info_plus_platform_interface + sha256: "202a487f08836a592a6bd4f901ac69b3a8f146af552bbd14407b6b41e1c3f086" + url: "https://pub.flutter-io.cn" + source: hosted + version: "3.2.1" path: dependency: transitive description: @@ -401,6 +433,14 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.3.0" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675" + url: "https://pub.flutter-io.cn" + source: hosted + version: "7.0.2" platform: dependency: transitive description: @@ -654,6 +694,23 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "15.0.2" + wakelock_plus: + dependency: "direct main" + description: + path: wakelock_plus + ref: "br_v1.4.0_ohos" + resolved-ref: "75ac1ceb51510c507eb2c71a24ea34c4982b87bd" + url: "https://gitcode.com/openharmony-sig/fluttertpc_wakelock_plus.git" + source: git + version: "1.4.0" + wakelock_plus_platform_interface: + dependency: transitive + description: + name: wakelock_plus_platform_interface + sha256: "036deb14cd62f558ca3b73006d52ce049fabcdcb2eddfe0bf0fe4e8a943b5cf2" + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.3.0" web: dependency: transitive description: @@ -686,6 +743,14 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.1.0" + xml: + dependency: transitive + description: + name: xml + sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025" + url: "https://pub.flutter-io.cn" + source: hosted + version: "6.6.1" sdks: dart: ">=3.9.2 <4.0.0" flutter: ">=3.35.0" diff --git a/pubspec.yaml b/pubspec.yaml index 414860e..5d820b6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.0+1 +version: 1.0.1+2 environment: sdk: ^3.9.2 @@ -48,10 +48,16 @@ dependencies: path: packages/audioplayers flutter_udid: path: packages/flutter_udid + share_plus: path: packages/flutter_plus_plugins/packages/share_plus/share_plus + wakelock_plus: + git: + url: https://gitcode.com/openharmony-sig/fluttertpc_wakelock_plus.git + ref: br_v1.4.0_ohos + path: wakelock_plus dev_dependencies: flutter_test: