| Files | Last commit | Last update |
|---|---|---|
feat: add test pages and service routing test for cross-platform verification - Add HomePage, SecondPage, ThirdPage, ApiTestPage, ServiceTestPage - Add CustomService with @HMService and @HMServiceProvider annotations - Update Index.ets to include all test pages - Update .gitignore to exclude Xcode workspace/userdata and test artifacts - Rebuild cross-platform outputs (Android APK + iOS app) - Android: all 12+1 service routing tests PASSED on real device - iOS: identified napi_load_module_with_info not implemented in ArkUI-X iOS runtime | 4 months ago | |
feat: HMRouter ArkUI-X cross-platform adaptation 基于 HMRouter (https://gitcode.com/HarmonyOS_next/HMRouter) 进行 ArkUI-X 跨平台适配,修复 6 处 HarmonyOS-only API 导致的跨平台编译错误,使项目可 同时编译为 HarmonyOS HAP 和 Android/iOS 应用。 ## 修改内容 ### 1. HMLogger.ets — 移除 hilog.isLoggable() 调用 原始代码: if (hilog.isLoggable(domain, tag, level)) { ... } 修改后: 仅保留自定义 loggerLevel 判断,移除 isLoggable 分支。 原因: hilog.isLoggable() 和 hilog.LogLevel 枚举在 ArkUI-X 跨平台编译器中 不支持。hilog.info/warn/error/debug 等日志输出方法本身不受影响。 ### 2. HMRouterStoreInit.ets — 替换 application.createModuleContext 原始代码: import { application, bundleManager, common } from '@kit.AbilityKit' ... const hspContext = await application.createModuleContext(context, hspInfo.moduleName) 修改后: import { common } from '@kit.AbilityKit' ... const hspContext = context.createModuleContext(hspInfo.moduleName) 原因: @kit.AbilityKit 的 application 静态模块在 ArkUI-X 中不支持跨平台。 Context 实例方法 createModuleContext() 是 ArkUI-X 文档中确认支持的跨平台 API,功能等价。 ### 3. HMRouterStoreInit.ets — 删除 getComponentInfosFromBundleManager 函数 该函数从未被任何代码调用(零引用),且内部存在 bug(get.createModuleContext 应为 context.createModuleContext),同时依赖跨平台不支持的 bundleManager API。 直接删除。 ### 4. HMRouterMgrService.ets — 替换 uri.URI URL 参数解析 原始代码: import { uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const params = uriObj.getQueryParams() // 获取查询参数 修改后: 使用 indexOf('?') + split('&') + decodeURIComponent 进行纯字符串解析。 原因: @kit.ArkTS 的 uri 模块在 ArkUI-X 跨平台编译器中报错。改为纯字符串 操作实现等价的 URL query 参数解析功能。 ### 5. HMRouterStoreImpl.ets — 替换 uri.URI 查询字符串剥离 原始代码: import { collections, HashMap, taskpool, TreeSet, uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const path = uriObj.path // 获取不含 query 的路径 修改后: const queryIndex = pagePath.indexOf('?') const path = queryIndex >= 0 ? pagePath.substring(0, queryIndex) : pagePath 原因: 同上,移除 @kit.ArkTS uri 依赖。 ## 与 OH 原版 HMRouter ArkTS 实现的差异 本仓库基于 HMRouter 原版 ArkTS 实现进行修改,差异集中在跨平台 API 适配层: | 模块 | OH 原版 | 本仓库 (ArkUI-X) | 差异说明 | |------|---------|-------------------|----------| | hilog | 使用 isLoggable() 做级别检查 | 移除 isLoggable,仅用自定义 loggerLevel | 功能等价,loggerLevel 已覆盖级别控制 | | createModuleContext | application.createModuleContext(ctx, name) 静态方法 | ctx.createModuleContext(name) 实例方法 | ArkUI-X 支持实例方法,参数和返回值一致 | | bundleManager | getComponentInfosFromBundleManager() | 已删除(死代码) | 原版中此函数从未被调用,含 bug,可安全删除 | | uri.URI (URL解析) | new uri.URI(url).getQueryParams() | 纯字符串 indexOf/split/decodeURIComponent | 功能等价,支持标准的 key=value&key=value 格式 | | uri.URI (路径提取) | new uri.URI(url).path | indexOf('?') + substring | 功能等价,截取 '?' 之前的部分作为路径 | ### 功能完整性 所有修改均保持与原版功能等价: - 路由初始化、页面跳转、拦截器、生命周期管理等功能不受影响 - HSP 模块的 rawfile 资源读取逻辑通过 context.createModuleContext 正常工作 - URL query 参数解析支持标准的查询字符串格式 ### 编译验证 assembleHap 构建通过,零编译错误。剩余 WARN 均为原版已有的非跨平台问题。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago | |
feat: add test pages and service routing test for cross-platform verification - Add HomePage, SecondPage, ThirdPage, ApiTestPage, ServiceTestPage - Add CustomService with @HMService and @HMServiceProvider annotations - Update Index.ets to include all test pages - Update .gitignore to exclude Xcode workspace/userdata and test artifacts - Rebuild cross-platform outputs (Android APK + iOS app) - Android: all 12+1 service routing tests PASSED on real device - iOS: identified napi_load_module_with_info not implemented in ArkUI-X iOS runtime | 4 months ago | |
feat: add test pages and service routing test for cross-platform verification - Add HomePage, SecondPage, ThirdPage, ApiTestPage, ServiceTestPage - Add CustomService with @HMService and @HMServiceProvider annotations - Update Index.ets to include all test pages - Update .gitignore to exclude Xcode workspace/userdata and test artifacts - Rebuild cross-platform outputs (Android APK + iOS app) - Android: all 12+1 service routing tests PASSED on real device - iOS: identified napi_load_module_with_info not implemented in ArkUI-X iOS runtime | 4 months ago | |
feat: configure @hadss/hmrouter-plugin in hvigor build system Register hmrouter-plugin (v1.2.3-rc.1) across all hvigor build files: - hvigor-config.json5: add @hadss/hmrouter-plugin dependency - root hvigorfile.ts: switch to AppTasksForArkUIX + appPlugin() - entry/hvigorfile.ts: add modulePlugin() to HapTasks - HMRouterLibrary/hvigorfile.ts: add modulePlugin() to harTasks Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago | |
chore: add .arkui-x cross-platform build outputs with Git LFS 包含 ArkUI-X 生成的 Android/iOS 工程文件和跨平台运行时依赖。 大文件(.so/.framework/.jar)通过 Git LFS 管理。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago | |
feat: add test pages and service routing test for cross-platform verification - Add HomePage, SecondPage, ThirdPage, ApiTestPage, ServiceTestPage - Add CustomService with @HMService and @HMServiceProvider annotations - Update Index.ets to include all test pages - Update .gitignore to exclude Xcode workspace/userdata and test artifacts - Rebuild cross-platform outputs (Android APK + iOS app) - Android: all 12+1 service routing tests PASSED on real device - iOS: identified napi_load_module_with_info not implemented in ArkUI-X iOS runtime | 4 months ago | |
docs: add cross-platform migration checklist for HMRouterLibrary Comprehensive guide covering ArkTS code adaptations, C++ platform guards, Hvigor/plugin configuration, iOS project.pbxproj setup, Android Gradle/CMake configuration, and runtime hm_router_map.json workaround. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago | |
feat: HMRouter ArkUI-X cross-platform adaptation 基于 HMRouter (https://gitcode.com/HarmonyOS_next/HMRouter) 进行 ArkUI-X 跨平台适配,修复 6 处 HarmonyOS-only API 导致的跨平台编译错误,使项目可 同时编译为 HarmonyOS HAP 和 Android/iOS 应用。 ## 修改内容 ### 1. HMLogger.ets — 移除 hilog.isLoggable() 调用 原始代码: if (hilog.isLoggable(domain, tag, level)) { ... } 修改后: 仅保留自定义 loggerLevel 判断,移除 isLoggable 分支。 原因: hilog.isLoggable() 和 hilog.LogLevel 枚举在 ArkUI-X 跨平台编译器中 不支持。hilog.info/warn/error/debug 等日志输出方法本身不受影响。 ### 2. HMRouterStoreInit.ets — 替换 application.createModuleContext 原始代码: import { application, bundleManager, common } from '@kit.AbilityKit' ... const hspContext = await application.createModuleContext(context, hspInfo.moduleName) 修改后: import { common } from '@kit.AbilityKit' ... const hspContext = context.createModuleContext(hspInfo.moduleName) 原因: @kit.AbilityKit 的 application 静态模块在 ArkUI-X 中不支持跨平台。 Context 实例方法 createModuleContext() 是 ArkUI-X 文档中确认支持的跨平台 API,功能等价。 ### 3. HMRouterStoreInit.ets — 删除 getComponentInfosFromBundleManager 函数 该函数从未被任何代码调用(零引用),且内部存在 bug(get.createModuleContext 应为 context.createModuleContext),同时依赖跨平台不支持的 bundleManager API。 直接删除。 ### 4. HMRouterMgrService.ets — 替换 uri.URI URL 参数解析 原始代码: import { uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const params = uriObj.getQueryParams() // 获取查询参数 修改后: 使用 indexOf('?') + split('&') + decodeURIComponent 进行纯字符串解析。 原因: @kit.ArkTS 的 uri 模块在 ArkUI-X 跨平台编译器中报错。改为纯字符串 操作实现等价的 URL query 参数解析功能。 ### 5. HMRouterStoreImpl.ets — 替换 uri.URI 查询字符串剥离 原始代码: import { collections, HashMap, taskpool, TreeSet, uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const path = uriObj.path // 获取不含 query 的路径 修改后: const queryIndex = pagePath.indexOf('?') const path = queryIndex >= 0 ? pagePath.substring(0, queryIndex) : pagePath 原因: 同上,移除 @kit.ArkTS uri 依赖。 ## 与 OH 原版 HMRouter ArkTS 实现的差异 本仓库基于 HMRouter 原版 ArkTS 实现进行修改,差异集中在跨平台 API 适配层: | 模块 | OH 原版 | 本仓库 (ArkUI-X) | 差异说明 | |------|---------|-------------------|----------| | hilog | 使用 isLoggable() 做级别检查 | 移除 isLoggable,仅用自定义 loggerLevel | 功能等价,loggerLevel 已覆盖级别控制 | | createModuleContext | application.createModuleContext(ctx, name) 静态方法 | ctx.createModuleContext(name) 实例方法 | ArkUI-X 支持实例方法,参数和返回值一致 | | bundleManager | getComponentInfosFromBundleManager() | 已删除(死代码) | 原版中此函数从未被调用,含 bug,可安全删除 | | uri.URI (URL解析) | new uri.URI(url).getQueryParams() | 纯字符串 indexOf/split/decodeURIComponent | 功能等价,支持标准的 key=value&key=value 格式 | | uri.URI (路径提取) | new uri.URI(url).path | indexOf('?') + substring | 功能等价,截取 '?' 之前的部分作为路径 | ### 功能完整性 所有修改均保持与原版功能等价: - 路由初始化、页面跳转、拦截器、生命周期管理等功能不受影响 - HSP 模块的 rawfile 资源读取逻辑通过 context.createModuleContext 正常工作 - URL query 参数解析支持标准的查询字符串格式 ### 编译验证 assembleHap 构建通过,零编译错误。剩余 WARN 均为原版已有的非跨平台问题。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago | |
feat: HMRouter ArkUI-X cross-platform adaptation 基于 HMRouter (https://gitcode.com/HarmonyOS_next/HMRouter) 进行 ArkUI-X 跨平台适配,修复 6 处 HarmonyOS-only API 导致的跨平台编译错误,使项目可 同时编译为 HarmonyOS HAP 和 Android/iOS 应用。 ## 修改内容 ### 1. HMLogger.ets — 移除 hilog.isLoggable() 调用 原始代码: if (hilog.isLoggable(domain, tag, level)) { ... } 修改后: 仅保留自定义 loggerLevel 判断,移除 isLoggable 分支。 原因: hilog.isLoggable() 和 hilog.LogLevel 枚举在 ArkUI-X 跨平台编译器中 不支持。hilog.info/warn/error/debug 等日志输出方法本身不受影响。 ### 2. HMRouterStoreInit.ets — 替换 application.createModuleContext 原始代码: import { application, bundleManager, common } from '@kit.AbilityKit' ... const hspContext = await application.createModuleContext(context, hspInfo.moduleName) 修改后: import { common } from '@kit.AbilityKit' ... const hspContext = context.createModuleContext(hspInfo.moduleName) 原因: @kit.AbilityKit 的 application 静态模块在 ArkUI-X 中不支持跨平台。 Context 实例方法 createModuleContext() 是 ArkUI-X 文档中确认支持的跨平台 API,功能等价。 ### 3. HMRouterStoreInit.ets — 删除 getComponentInfosFromBundleManager 函数 该函数从未被任何代码调用(零引用),且内部存在 bug(get.createModuleContext 应为 context.createModuleContext),同时依赖跨平台不支持的 bundleManager API。 直接删除。 ### 4. HMRouterMgrService.ets — 替换 uri.URI URL 参数解析 原始代码: import { uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const params = uriObj.getQueryParams() // 获取查询参数 修改后: 使用 indexOf('?') + split('&') + decodeURIComponent 进行纯字符串解析。 原因: @kit.ArkTS 的 uri 模块在 ArkUI-X 跨平台编译器中报错。改为纯字符串 操作实现等价的 URL query 参数解析功能。 ### 5. HMRouterStoreImpl.ets — 替换 uri.URI 查询字符串剥离 原始代码: import { collections, HashMap, taskpool, TreeSet, uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const path = uriObj.path // 获取不含 query 的路径 修改后: const queryIndex = pagePath.indexOf('?') const path = queryIndex >= 0 ? pagePath.substring(0, queryIndex) : pagePath 原因: 同上,移除 @kit.ArkTS uri 依赖。 ## 与 OH 原版 HMRouter ArkTS 实现的差异 本仓库基于 HMRouter 原版 ArkTS 实现进行修改,差异集中在跨平台 API 适配层: | 模块 | OH 原版 | 本仓库 (ArkUI-X) | 差异说明 | |------|---------|-------------------|----------| | hilog | 使用 isLoggable() 做级别检查 | 移除 isLoggable,仅用自定义 loggerLevel | 功能等价,loggerLevel 已覆盖级别控制 | | createModuleContext | application.createModuleContext(ctx, name) 静态方法 | ctx.createModuleContext(name) 实例方法 | ArkUI-X 支持实例方法,参数和返回值一致 | | bundleManager | getComponentInfosFromBundleManager() | 已删除(死代码) | 原版中此函数从未被调用,含 bug,可安全删除 | | uri.URI (URL解析) | new uri.URI(url).getQueryParams() | 纯字符串 indexOf/split/decodeURIComponent | 功能等价,支持标准的 key=value&key=value 格式 | | uri.URI (路径提取) | new uri.URI(url).path | indexOf('?') + substring | 功能等价,截取 '?' 之前的部分作为路径 | ### 功能完整性 所有修改均保持与原版功能等价: - 路由初始化、页面跳转、拦截器、生命周期管理等功能不受影响 - HSP 模块的 rawfile 资源读取逻辑通过 context.createModuleContext 正常工作 - URL query 参数解析支持标准的查询字符串格式 ### 编译验证 assembleHap 构建通过,零编译错误。剩余 WARN 均为原版已有的非跨平台问题。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago | |
feat: configure @hadss/hmrouter-plugin in hvigor build system Register hmrouter-plugin (v1.2.3-rc.1) across all hvigor build files: - hvigor-config.json5: add @hadss/hmrouter-plugin dependency - root hvigorfile.ts: switch to AppTasksForArkUIX + appPlugin() - entry/hvigorfile.ts: add modulePlugin() to HapTasks - HMRouterLibrary/hvigorfile.ts: add modulePlugin() to harTasks Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago | |
feat: HMRouter ArkUI-X cross-platform adaptation 基于 HMRouter (https://gitcode.com/HarmonyOS_next/HMRouter) 进行 ArkUI-X 跨平台适配,修复 6 处 HarmonyOS-only API 导致的跨平台编译错误,使项目可 同时编译为 HarmonyOS HAP 和 Android/iOS 应用。 ## 修改内容 ### 1. HMLogger.ets — 移除 hilog.isLoggable() 调用 原始代码: if (hilog.isLoggable(domain, tag, level)) { ... } 修改后: 仅保留自定义 loggerLevel 判断,移除 isLoggable 分支。 原因: hilog.isLoggable() 和 hilog.LogLevel 枚举在 ArkUI-X 跨平台编译器中 不支持。hilog.info/warn/error/debug 等日志输出方法本身不受影响。 ### 2. HMRouterStoreInit.ets — 替换 application.createModuleContext 原始代码: import { application, bundleManager, common } from '@kit.AbilityKit' ... const hspContext = await application.createModuleContext(context, hspInfo.moduleName) 修改后: import { common } from '@kit.AbilityKit' ... const hspContext = context.createModuleContext(hspInfo.moduleName) 原因: @kit.AbilityKit 的 application 静态模块在 ArkUI-X 中不支持跨平台。 Context 实例方法 createModuleContext() 是 ArkUI-X 文档中确认支持的跨平台 API,功能等价。 ### 3. HMRouterStoreInit.ets — 删除 getComponentInfosFromBundleManager 函数 该函数从未被任何代码调用(零引用),且内部存在 bug(get.createModuleContext 应为 context.createModuleContext),同时依赖跨平台不支持的 bundleManager API。 直接删除。 ### 4. HMRouterMgrService.ets — 替换 uri.URI URL 参数解析 原始代码: import { uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const params = uriObj.getQueryParams() // 获取查询参数 修改后: 使用 indexOf('?') + split('&') + decodeURIComponent 进行纯字符串解析。 原因: @kit.ArkTS 的 uri 模块在 ArkUI-X 跨平台编译器中报错。改为纯字符串 操作实现等价的 URL query 参数解析功能。 ### 5. HMRouterStoreImpl.ets — 替换 uri.URI 查询字符串剥离 原始代码: import { collections, HashMap, taskpool, TreeSet, uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const path = uriObj.path // 获取不含 query 的路径 修改后: const queryIndex = pagePath.indexOf('?') const path = queryIndex >= 0 ? pagePath.substring(0, queryIndex) : pagePath 原因: 同上,移除 @kit.ArkTS uri 依赖。 ## 与 OH 原版 HMRouter ArkTS 实现的差异 本仓库基于 HMRouter 原版 ArkTS 实现进行修改,差异集中在跨平台 API 适配层: | 模块 | OH 原版 | 本仓库 (ArkUI-X) | 差异说明 | |------|---------|-------------------|----------| | hilog | 使用 isLoggable() 做级别检查 | 移除 isLoggable,仅用自定义 loggerLevel | 功能等价,loggerLevel 已覆盖级别控制 | | createModuleContext | application.createModuleContext(ctx, name) 静态方法 | ctx.createModuleContext(name) 实例方法 | ArkUI-X 支持实例方法,参数和返回值一致 | | bundleManager | getComponentInfosFromBundleManager() | 已删除(死代码) | 原版中此函数从未被调用,含 bug,可安全删除 | | uri.URI (URL解析) | new uri.URI(url).getQueryParams() | 纯字符串 indexOf/split/decodeURIComponent | 功能等价,支持标准的 key=value&key=value 格式 | | uri.URI (路径提取) | new uri.URI(url).path | indexOf('?') + substring | 功能等价,截取 '?' 之前的部分作为路径 | ### 功能完整性 所有修改均保持与原版功能等价: - 路由初始化、页面跳转、拦截器、生命周期管理等功能不受影响 - HSP 模块的 rawfile 资源读取逻辑通过 context.createModuleContext 正常工作 - URL query 参数解析支持标准的查询字符串格式 ### 编译验证 assembleHap 构建通过,零编译错误。剩余 WARN 均为原版已有的非跨平台问题。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago | |
feat: HMRouter ArkUI-X cross-platform adaptation 基于 HMRouter (https://gitcode.com/HarmonyOS_next/HMRouter) 进行 ArkUI-X 跨平台适配,修复 6 处 HarmonyOS-only API 导致的跨平台编译错误,使项目可 同时编译为 HarmonyOS HAP 和 Android/iOS 应用。 ## 修改内容 ### 1. HMLogger.ets — 移除 hilog.isLoggable() 调用 原始代码: if (hilog.isLoggable(domain, tag, level)) { ... } 修改后: 仅保留自定义 loggerLevel 判断,移除 isLoggable 分支。 原因: hilog.isLoggable() 和 hilog.LogLevel 枚举在 ArkUI-X 跨平台编译器中 不支持。hilog.info/warn/error/debug 等日志输出方法本身不受影响。 ### 2. HMRouterStoreInit.ets — 替换 application.createModuleContext 原始代码: import { application, bundleManager, common } from '@kit.AbilityKit' ... const hspContext = await application.createModuleContext(context, hspInfo.moduleName) 修改后: import { common } from '@kit.AbilityKit' ... const hspContext = context.createModuleContext(hspInfo.moduleName) 原因: @kit.AbilityKit 的 application 静态模块在 ArkUI-X 中不支持跨平台。 Context 实例方法 createModuleContext() 是 ArkUI-X 文档中确认支持的跨平台 API,功能等价。 ### 3. HMRouterStoreInit.ets — 删除 getComponentInfosFromBundleManager 函数 该函数从未被任何代码调用(零引用),且内部存在 bug(get.createModuleContext 应为 context.createModuleContext),同时依赖跨平台不支持的 bundleManager API。 直接删除。 ### 4. HMRouterMgrService.ets — 替换 uri.URI URL 参数解析 原始代码: import { uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const params = uriObj.getQueryParams() // 获取查询参数 修改后: 使用 indexOf('?') + split('&') + decodeURIComponent 进行纯字符串解析。 原因: @kit.ArkTS 的 uri 模块在 ArkUI-X 跨平台编译器中报错。改为纯字符串 操作实现等价的 URL query 参数解析功能。 ### 5. HMRouterStoreImpl.ets — 替换 uri.URI 查询字符串剥离 原始代码: import { collections, HashMap, taskpool, TreeSet, uri } from '@kit.ArkTS' ... const uriObj = new uri.URI(pagePath) const path = uriObj.path // 获取不含 query 的路径 修改后: const queryIndex = pagePath.indexOf('?') const path = queryIndex >= 0 ? pagePath.substring(0, queryIndex) : pagePath 原因: 同上,移除 @kit.ArkTS uri 依赖。 ## 与 OH 原版 HMRouter ArkTS 实现的差异 本仓库基于 HMRouter 原版 ArkTS 实现进行修改,差异集中在跨平台 API 适配层: | 模块 | OH 原版 | 本仓库 (ArkUI-X) | 差异说明 | |------|---------|-------------------|----------| | hilog | 使用 isLoggable() 做级别检查 | 移除 isLoggable,仅用自定义 loggerLevel | 功能等价,loggerLevel 已覆盖级别控制 | | createModuleContext | application.createModuleContext(ctx, name) 静态方法 | ctx.createModuleContext(name) 实例方法 | ArkUI-X 支持实例方法,参数和返回值一致 | | bundleManager | getComponentInfosFromBundleManager() | 已删除(死代码) | 原版中此函数从未被调用,含 bug,可安全删除 | | uri.URI (URL解析) | new uri.URI(url).getQueryParams() | 纯字符串 indexOf/split/decodeURIComponent | 功能等价,支持标准的 key=value&key=value 格式 | | uri.URI (路径提取) | new uri.URI(url).path | indexOf('?') + substring | 功能等价,截取 '?' 之前的部分作为路径 | ### 功能完整性 所有修改均保持与原版功能等价: - 路由初始化、页面跳转、拦截器、生命周期管理等功能不受影响 - HSP 模块的 rawfile 资源读取逻辑通过 context.createModuleContext 正常工作 - URL query 参数解析支持标准的查询字符串格式 ### 编译验证 assembleHap 构建通过,零编译错误。剩余 WARN 均为原版已有的非跨平台问题。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> | 4 months ago |
Project README is empty