文件最后提交记录最后更新时间
!2851 merge main-test into main test(UnitTests): add ets local unit test Created-by: cepandxy Commit-by: Chengzhipeng Merged-by: openharmony_ci Description: ## 变更类型 请在对应类型(请勿多选)前打 ,**仅可选择一项**: - [ ] feat(新增功能,对应 Changelog Added) - [ ] fix(修复 Bug,对应 Changelog Fixed) - [ ] docs(文档变更,对应 Changelog Documentation) - [ ] refactor(代码重构,对应 Changelog Changed) - [ ] perf(性能优化,对应 Changelog Performance) - [x] test(测试相关,不进入 Changelog) - [ ] chore(构建/工具链/依赖,不进入 Changelog) - [ ] deprecated(标记弃用,对应 Changelog Deprecated) - [ ] removed(移除功能,对应 Changelog Removed) - [ ] security(安全修复,对应 Changelog Security) ## 变更内容 add local test to test ets code ## 测试步骤 ![image.png](https://raw.gitcode.com/user-images/assets/4370111/65b4b064-ebc6-44c5-b6e5-b8c6bc7e0cf9/image.png 'image.png') ## 测试情况 - [x] 已通过本地完整测试(单元测试/集成测试) - [x] 已通过 CI 自动构建与测试 - [x] 已补充/更新对应的测试用例 - [x] 已在目标环境(如 手机/平板)验证功能 - [x] 已在最低兼容API版本验证可用性 ## 合入前自检 <!-- 请在合入前根据以下条例进行自检 自检完成后在[ ]内填入"x", 例如: - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 --> - [ ] 不涉及非兼容性变更;若涉及,已通过相应评审。 - [ ] 不涉及性能或已进行性能测试且无性能劣化。 - [ ] 符合对应的编码规范。 - [ ] 无敏感信息泄露,如密码、密钥等。 - [ ] 不涉及文档更新,或已更新了文档。 - [ ] 针对可测试性要求,已增加必要的自测用例、合理的日志记录或Trace信息。 - [ ] 不存在非法的文件引入,包括图片和代码等 See merge request: OpenHarmony-RN/ohos_react_native!28516 天前
chore: remove the symbolic link test-driver. Co-authored-by: 谢代荣<xiedairong@huawei.com> # message auto-generated for no-merge-commit merge: !1662 merge chore into 0.77.1-rc.1-ohos chore: remove the symbolic link test-driver. Created-by: xiedrsz Commit-by: 谢代荣 Merged-by: huangyouhua Description: ## Why are these changes being made? When making Module, test-driveris converted into a symbolic link. However, **ohpm** does not allow symbolic links in har packages, which will cause the rnoh har package publish to fail. Therefore, it needs to be removed. ## Changelog - removed the symbolic link test-driver. ## Test Plan 1. make react_native_openharmony module. 1. extract react_native_openharmony.har. 1. Check whether the file src/main/cpp/third-party/glog/test-driverhas been deleted. ## Checklist - [x] pnpm verify command has passed successfully. - [x] No failures occurred in automatic tests on the CONCURRENT TESTER page in the tester app. - [x] No failures occurred in automatic tests on the SEQUENTIAL TESTER page in the tester app. - [x] MR does not include a breaking change or a review has been requested from a Huawei reviewer. See merge request: openharmony-sig/ohos_react_native!16627 个月前
[chore]: updated to version 7.0.0.190(0.82.25) Signed-off-by: dengjiangtao <1442949715@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 年前
fix(Config): exempt LICENSE-Meta from OAT scan and align copyright with upstream 问题描述: OAT 4 扫描报告 LICENSE-Meta 文件存在 Copyright Header Invalid: InvalidCopyright 告警。 LICENSE-Meta 中的版权声明 "Copyright (c) Meta Platforms, Inc. and affiliates" 不符合 OAT.xml policylist 中定义的允许版权模式 (Huawei Technologies Co., Ltd. 或个人开发者格式 ^[A-Z][a-z]+ [A-Z][a-z]+), 且末尾缺少句号,与 React Native 上游官方格式 "Copyright (c) Meta Platforms, Inc. and affiliates." 不一致,可能导致合规风险。 解决方案: 1. 在 OAT.xml 的 defaultFilter 和 copyrightPolicyFilter 中分别添加3个 LICENSE-Meta 文件的 filepath 过滤项, 声明其来自上游 Meta,与 LICENSE-Facebook 等处理一致; 2. 在3个 LICENSE-Meta 文件版权声明末尾补齐句号, 使其与 React Native 官方仓库格式完全一致。 影响范围: 仅修改 OAT.xml 过滤规则和 LICENSE-Meta 文本格式, 不改变任何源码逻辑与功能,整体向后兼容。 Signed-off-by: jiaxuan_wong <1801330925@qq.com> 11 天前
chore: update react-native to 0.82.1 Co-authored-by: Patryk Fryda<patryk.fryda@swmansion.com> # message auto-generated for no-merge-commit merge: !1843 merge 0.82 into 0.82 chore: update react-native to 0.82.1 Created-by: pafry Commit-by: Patryk Fryda Merged-by: huangyouhua Description: # https://gitcode.com/openharmony-sig/ohos_react_native/merge_requests/1835 has to be merged first. ## Why are these changes being made? There is ongoing effort to update react-native and RNOH to 0.82. This is the last step. ### Notable react-native changes: - https://github.com/facebook/react-native/pull/51600 - infoLog removal - https://github.com/facebook/react-native/pull/53094 - changing libhermes to libhermesvm - https://github.com/facebook/react-native/pull/52610 - moving ReactNativeFeatureFlags to src/private - https://github.com/facebook/react-native/pull/53360 - stable DOM API - https://github.com/facebook/react-native/pull/52750 - Install ContextContainer::Shared with std::shared_ptr ### Other changes: - replaced custom RNOH cxx turbomodules ## Changelog - updated react-native to 0.82.1 ## Test Plan - launch tester app, - run sequential and concurrent tests ## Checklist - [x] pnpm verify command has passed successfully. - [x] No failures occurred in automatic tests on the CONCURRENT TESTER page in the tester app. - [x] No failures occurred in automatic tests on the SEQUENTIAL TESTER page in the tester app. - [x] MR does not include a breaking change or a review has been requested from a Huawei reviewer. See merge request: openharmony-sig/ohos_react_native!18435 个月前
[chore]: updated to version 6.1.0.370(0.82.21) Signed-off-by: dengjiangtao <1442949715@qq.com> 2 个月前
feat(Upgrade): 0.84版本,升级Hermes V1 0.84版本,升级Hermes V1 Closes #2387 Signed-off-by: fangyygw <fang_zhen@hoperun.com> 26 天前
fix(Config): add missing copyright headers for warning files 问题描述: 当前 xin3.txt 清单中的 OAT.4 版权头告警文件存在缺失或无效版权头问题, 扫描结果为 Copyright Header Invalid: NULL,导致对应文件在合规检查中被判定为 致命未解决项。 解决方案: 在不改变原有业务逻辑、构建逻辑和文件内容结构的前提下,按文件类型补充统 一版权头;同时修正个别特殊文件的头部格式,使 TS/TSX/JS/ETS/脚本/模板/配 置等文件都符合仓库现有版权声明风格与注释语法要求。 影响范围: 仅影响 xin3.txt 对应告警文件的文件头注释,不改变正常功能、模块解析、构建 结果与运行时行为,对现有性能无直接影响,整体向后兼容。 Signed-off-by: jiaxuan_wong <1801330925@qq.com> 13 天前
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 年前
fix(Config): add missing copyright headers for warning files 问题描述: 当前 xin3.txt 清单中的 OAT.4 版权头告警文件存在缺失或无效版权头问题, 扫描结果为 Copyright Header Invalid: NULL,导致对应文件在合规检查中被判定为 致命未解决项。 解决方案: 在不改变原有业务逻辑、构建逻辑和文件内容结构的前提下,按文件类型补充统 一版权头;同时修正个别特殊文件的头部格式,使 TS/TSX/JS/ETS/脚本/模板/配 置等文件都符合仓库现有版权声明风格与注释语法要求。 影响范围: 仅影响 xin3.txt 对应告警文件的文件头注释,不改变正常功能、模块解析、构建 结果与运行时行为,对现有性能无直接影响,整体向后兼容。 Signed-off-by: jiaxuan_wong <1801330925@qq.com> 13 天前
test(UnitTests): add ets local unit test Co-authored-by: Agent Signed-off-by: Chengzhipeng <chengzhipeng7@huawei.com> 7 天前
fix(Config): add missing copyright headers for warning files 问题描述: 当前 xin3.txt 清单中的 OAT.4 版权头告警文件存在缺失或无效版权头问题, 扫描结果为 Copyright Header Invalid: NULL,导致对应文件在合规检查中被判定为 致命未解决项。 解决方案: 在不改变原有业务逻辑、构建逻辑和文件内容结构的前提下,按文件类型补充统 一版权头;同时修正个别特殊文件的头部格式,使 TS/TSX/JS/ETS/脚本/模板/配 置等文件都符合仓库现有版权声明风格与注释语法要求。 影响范围: 仅影响 xin3.txt 对应告警文件的文件头注释,不改变正常功能、模块解析、构建 结果与运行时行为,对现有性能无直接影响,整体向后兼容。 Signed-off-by: jiaxuan_wong <1801330925@qq.com> 13 天前
README.md

React Native OpenHarmony

简介

本库是react-native在OpenHarmony上进行适配的原生侧har包。

下载安装

ohpm install @rnoh/react-native-openharmony

环境配置等更多内容,请参考环境搭建

使用说明

执行上一步命令安装完成之后,点击顶部菜单栏的File > Sync and Refresh Project来执行ohpm install,执行完成后会在entry目录下生成oh_modules文件夹。 由于har包比较大,这一步耗时会比较长,务必保证ohpm install和IDE自发的SyncData全都完成,否则会导致编译报错。 更多详细信息参考配套文档创建鸿蒙工程

目录结构

|---- react_native_openharmony
|     |---- src  # react_native_openharmony库文件夹
|           |---- main  # 模块代码
|                |---- cpp   # c++侧代码
|                |---- ets   # ets侧代码
                 |---- resources   # 资源文件夹
|            |---- *.json5      # 配置文件
|     |---- build-profile.json5     # 安装使用方法
|     |---- BuildProfile.ets        # 配置参数
|     |---- CHANGELOG.md            # 修改记录
|     |---- hvigorfile.ts           # hvigor配置
|     |---- LICENSE                 # 开源协议license
|     |---- oh-package.json5        # 配置文件
|     |---- README.md               # 安装使用方法

贡献代码

使用过程中发现任何问题都可以提交Issue,当然,也非常欢迎提交PR

开源协议

本项目遵循 [MIT License]