# IssueSolutionDemos **Repository Path**: diaiwei/issue-solution-demos ## Basic Information - **Project Name**: IssueSolutionDemos - **Description**: 基于实际开发问题总结demo代码示例 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 25 - **Created**: 2025-06-17 - **Last Updated**: 2025-06-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Issue Solution Demos 用于管理和运行 OpenHarmony Issue 解决方案示例的工具集。 ## 目录结构 ``` . ├── issues/ # Issue demo 目录 │ ├── ArkTS/ # 分类目录 │ │ └── ir20250001/ │ ├── ArkUI/ │ │ └── ir20250002/ │ └── ... ├── products/ # 产品目录 │ └── default/ # 默认产品 ├── common/ # 公共模块 │ ├── ui_components/ │ ├── framework/ │ └── utils/ ├── issue.bat # Windows 命令行工具 ├── issue.sh # macOS 命令行工具 └── build-profile.json5 # 构建配置文件 ``` ## 使用说明 ### Windows 平台 ```bash # 添加 Issue Demo issue.bat add 20250001 # 清理配置 issue.bat clear # 查看帮助 issue.bat ``` ### macOS 平台 ```bash # 添加执行权限(首次使用) chmod +x issue.sh # 添加 Issue Demo ./issue.sh add 20250001 # 清理配置 ./issue.sh clear # 查看帮助 ./issue.sh ``` ### 功能说明 - `add `: 添加指定的 Issue Demo 到构建配置 - 支持多个 Demo 同时添加 - 自动搜索子目录查找对应的 Demo - 自动处理模块配置和依赖关系 - `clear`: 清理所有 Issue Demo 相关配置 - 清理 issue.build.json - 还原 build-profile.json5 - 还原 default 模块依赖 - 删除临时生成的文件 - `new --`: 创建一个新的issue demo模块 - 创建issue demo模块 - 添加到构建配置 ### 运行项目 1. 连接手机 2. 执行命令 ```bash # 清理配置 issue.bat clear # 添加指定的 Issue Demo 到构建配置 issue.bat add 20250001 ``` 3. 安装hap到手机 - 会自动生成导航页面 - 可以在页面中查看 Issue 信息并跳转到对应 Demo ## 开发说明 ### 添加新的 Issue Demo ```bash # 创建一个新的Issue Demo模块 issue.bat new ArkUI-20250001-test # 查看帮助 issue.bat ``` ### 注意事项 1. 每个 Issue 只能有一个对应的 Demo 2. 运行前确保所有依赖模块都存在 3. 修改代码后需要重新构建