文件最后提交记录最后更新时间
fix Signed-off-by: Arkadiusz <arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/fix-tester-ecosystem into 0.77.1-rc.1-ohos chore: fix tester-ecosystem Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Merged-by: huangyouhua Description: ## Why are these changes being made? This commit https://gitcode.com/openharmony-sig/ohos_react_native/commit/959ae62c23ffef7f95d0a03fd9c41409a4fd1fa8?ref=0.77.1-rc.1-ohos introduced profile configuration in a wrong directory breaking tester-ecosystem. Also, that commit updated app.json5 in tester-ecosystem but it should update in tester. ## Test Plan Build tester-ecosystem. ## 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!7031 年前
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 天前
feat(Upgrade): 升级React Native版本为0.84.1 Co-authored-by: fangyygw<fang_zhen@hoperun.com> 1 个月前
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 天前
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 天前
!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 天前
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 天前
fix: TextInput gains focus when it should not # message auto-generated for no-merge-commit merge: merge kas/textinput-focus-issue into 0.77.1-rc.1-ohos fix: TextInput gains focus when it should not Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Merged-by: my_performance Description: ## Why are these changes being made? Sometimes TextInput gains focus when it shouldn't. It happens when native side emits touch down event right before a component responsible for emitting that event is removed. In such scenario touch up event is never sent and that moves Gesture Recognizer System in unexpected state resulting in incorrect gesture handling. ## Changelog - fixed TextInput gaining focus when it shouldn't ## Test Plan Keep pressing button. TextInput should never gain focus. ``` import React, {useState, useRef} from 'react'; import { Animated, TextInput, View, TouchableOpacity, StyleSheet, Text, Button, Switch, } from 'react-native'; let count = 0; function PageA({onNavigate}) { return ( <View style={[styles.view]}> <TouchableOpacity onPress={onNavigate}> <Text style={{backgroundColor: '#eee', height: 40, fontSize: 18}}> 跳转页面 </Text> </TouchableOpacity> </View> ); } function PageB({onNavigateBack}) { return ( <View style={[styles.view]}> <Button title="返回页面 A" onPress={onNavigateBack} /> <Text style={{fontSize: 30, color: '#333'}}>other text1</Text> <Text style={{fontSize: 30, color: '#333'}}>other text2</Text> <Text style={{fontSize: 30, color: '#333'}}>other text3</Text> <Text style={{fontSize: 30, color: '#333'}}>other text4</Text> <TextInput style={styles.input} onFocus={() => { console.log('focus in pageb'); }} /> </View> ); } const App = () => { const [currentPage, setCurrentPage] = useState('A'); const [animatedEnable, setAnimatedEnable] = useState(true); const fadeAnim = useRef(new Animated.Value(1)).current; const runAnimated = (currentPage: string) => { if (!animatedEnable) { return setCurrentPage(currentPage); } const duration = 50; return Animated.timing(fadeAnim, { toValue: 0, duration, useNativeDriver: true, }).start(() => { setCurrentPage(currentPage); Animated.timing(fadeAnim, { toValue: 1, duration, useNativeDriver: true, }).start(); }); }; const navigateToPageB = () => { runAnimated('B'); }; const navigateToPageA = () => { runAnimated('A'); }; return ( <View style={styles.container}> <View style={styles.switchText}> <Text>启用动画</Text> <Switch onChange={() => setAnimatedEnable(!animatedEnable)} value={animatedEnable}></Switch> </View> <Animated.View style={[styles.pageContainer, {opacity: fadeAnim}]}> {currentPage === 'A' ? ( <PageA onNavigate={navigateToPageB} /> ) : ( <PageB onNavigateBack={navigateToPageA} /> )} </Animated.View> </View> ); }; const styles = StyleSheet.create({ switchText: { flexDirection: 'row', paddingTop: 50, alignItems: 'center', }, pageContainer: { flex: 1, backgroundColor: 'lightblue', marginTop: 100, }, view: { flex: 1, }, container: { flex: 1, justifyContent: 'center', padding: 16, }, input: { height: 10, width: 10, borderColor: 'gray', borderWidth: 1, marginBottom: 20, paddingHorizontal: 8, borderRadius: 4, }, }); export default App; ``` ## Checklist - [x] pnpm verify command has passed successfully (MR is not rebased because of issue on the target branch). - [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!6731 年前
feat(Upgrade): 0.84版本,升级Hermes V1 0.84版本,升级Hermes V1 Closes #2387 Signed-off-by: fangyygw <fang_zhen@hoperun.com> 26 天前
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 天前
fix: issues where the hvigor plugin fails to recognize commands such as link-harmony and cannot execute the CreateJSBundle task. Co-authored-by: 谢代荣<xiedairong@huawei.com> # message auto-generated for no-merge-commit merge: merge hvigor into 0.77.1-rc.1-ohos fix: issues where the hvigor plugin fails to recognize commands such as link-harmony and cannot execute the CreateJSBundle task. Created-by: xiedrsz Commit-by: 谢代荣 Merged-by: huangyouhua Description: ## Why are these changes being made? Currently, the @rnoh/hvigor-plugin has some issues: 1. It cannot execute the CreateJSBundle task. 1. When the Harmony project is not inside the RN project, it fails to recognize codegen-harmony and link-harmony. ## Changelog - fixed the issue where CreateJSBundle is not executed. - fixed the issue where codegen-harmony and link-harmony are not recognized. - added CheckHvigorVersionSubtask. ## Test Plan 1. You may need to clear the hvigor cache. The cache directory is located at User/.hvigor/project_caches. 1. You may need to delete the node_modules folder in packages\react-native-harmony-hvigor-plugin. 1. Run pnpm init-ws. 1. Open tester/harmony using DevEco, switch to release mode, and click 'Run' to build. 1. Check whether the Tester app can launch properly and display the test case list. 1. Verify that docs/Samples/AutolinkingSample works correctly. ## 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!15777 个月前
feat(Upgrade): 升级React Native版本为0.84.1 Co-authored-by: fangyygw<fang_zhen@hoperun.com> 1 个月前
feat(Upgrade): 0.84版本,升级Hermes V1 0.84版本,升级Hermes V1 Closes #2387 Signed-off-by: fangyygw <fang_zhen@hoperun.com> 26 天前