文件最后提交记录最后更新时间
fix(static): address remaining scan follow-up warnings 问题描述: 最新一轮补充扫描后,仓内仍残留一批样例格式、Metro 结构复杂度以及 OAT 头注释类告警,涉及 Sample 工程入口、Tester 脚本、Harmony Metro resolver,以及多个 tester、CLI 模板与生态工程文件,影响静态检查结果收敛。 解决方案: - 修复 SampleProject 入口文件的缺失分号与格式问题,清理 tester 脚本中的冗余注释代码 - 继续拆分 metro.config.js 中 resolveRequestOnlyForHarmony 的内部判断逻辑,降低函数嵌套深度 - 为命中的 JS、TS、TSX、ETS 与 gitignore 模板文件补充统一版权与许可证头 - 调整 LICENSE-Meta 版权行格式,使其与仓内第三方许可证文本体例保持一致 影响范围: - 影响静态检查命中的样例入口文件、Metro 配置文件、Tester 脚本以及多处模板与工程入口文件 - 不引入新的业务功能,重点是清理剩余扫描告警并保持现有逻辑与行为不变 Signed-off-by: jiaxuan_wong <1801330925@qq.com> 11 天前
chore: packages directory ## Summary This MR prepares this repository for yarn workspaces. ## Checklist - [x] Project compiles and the tester application works. ## Issue Links Related https://gl.swmansion.com/rnoh/react-native-harmony/-/issues/1487 See merge request rnoh/react-native-harmony!1802 Signed-off-by: huangyouhua <1356795413@qq.com> 1 年前
chore: packages directory ## Summary This MR prepares this repository for yarn workspaces. ## Checklist - [x] Project compiles and the tester application works. ## Issue Links Related https://gl.swmansion.com/rnoh/react-native-harmony/-/issues/1487 See merge request rnoh/react-native-harmony!1802 Signed-off-by: huangyouhua <1356795413@qq.com> 1 年前
chore: use pnpm and workspaces; fix: workspaces support ## Summary Initial setup was fine when there were 2-3 packages in the repo. However, over time more packages were added, and also I am planning to add react-native-core to this repo as a submodule in the near future. react-native-core, react-native-harmony, hvigor-plugin, and cli need to be deployed together so that the version is the same for them in order to let users know which packages are compatible with each other. The current setup has also many flaws, e.g., the tester's verify scripts verify the entire repository but they should verify only itself, packages need to be uninstalled, packed and installed after any change, react-native-core must be deployed every time it is changed because it isn't installed locally. This MR solves those issues. Initially, I tried using NPM workspaces, however, the node_modules structure seems to be incompatible with react-native. Also, NPM doesn't provide an option to change that. Yarn node_modules structure should be compatible, however, I had issues with yarn (3.6.4) when installing packages again after the first installation (the resolution step was super slow). I decided to try pnpm, and it feels fast and reliable. I've managed to set up monorepo with it. In this repo, pnpm is configured to use the yarn node_modules hoisting approach so potential switching to yarn should be easy. This MR also speeds up the verify script. pnpm dev runs multiple servers concurrently. This will be more useful when the test-kit library is used here because it depends on the hdc server running in the background. The deployment script needs to be recreated after adding react-native-core as a submodule. ## Changes - added support for symlinks and monorepos - added --hermersc-dir argument to bundle-harmony ## Test Plan Run this project according to project-setup.md instructions. ## Checklist - [x] ... - [x] hoist commands - [x] update verify - [x] update git hooks setup - [x] update instructions - [x] update tester-ecosystem - [x] require verify script - [x] ~update deployment script~ - create issue for that, depends on adding rn core to monorepo - [x] clean up after yarn/npm - [x] fix bundle-harmony - [x] check production mode - [x] test setup on fresh repo - [x] ~use workspace protocol?~ it will be needed after adding react native core to monorepo - [x] add react-native-core - create issue for that - [x] clean up - [x] self review ## Issue Links Closes https://gl.swmansion.com/rnoh/react-native-harmony/-/issues/1487 See merge request rnoh/react-native-harmony!1804 Signed-off-by: huangyouhua <1356795413@qq.com> 1 年前
chore: packages directory ## Summary This MR prepares this repository for yarn workspaces. ## Checklist - [x] Project compiles and the tester application works. ## Issue Links Related https://gl.swmansion.com/rnoh/react-native-harmony/-/issues/1487 See merge request rnoh/react-native-harmony!1802 Signed-off-by: huangyouhua <1356795413@qq.com> 1 年前
chore: updates locks Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/update-locks into 0.77.1-rc.1-ohos chore: updates locks; fix "There are some dependency names that are inconsistent with the actual package names" Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Description Releases don't move the codebase into a consistent state. Changes in this MR (except the link in README.md) happen automatically after pnpm init-ws and running harmony projects. After reinstalling RNOH projects, a new problem occurred: ``` Error Message: There are some dependency names that are inconsistent with the actual package names. ╰→ Caused by: Original Error: local dependency "rnoh" found in ``` It is caused either by the new DevEco v6 to which I've just switched, or this change "fix: issues where the hvigor plugin fails to recognize commands such as link-harmony and cannot execute the CreateJSBundle task". In any case, this MR also fixes this issue. ## Changes ## Test Plan Run RNOH tester and 61 tester on Harmony. ## Checklist - [x] Does not involve incompatible changes; if involved, has been reviewed accordingly. - [x] Does not impact performance, or performance testing has been conducted without degradation. - [x] Complies with the relevant coding standards. - [x] Does not involve documentation updates, or the documentation has been updated. - [x] Meets testability requirements with necessary self-test cases, appropriate logging, or trace information added. - [x] No illegal file inclusions exist, such as images or code. See merge request: openharmony-sig/ohos_react_native!16347 个月前