llt test构建配置修改 Created-by: qq_35037212 Commit-by: fangwusheng Merged-by: openharmony_ci Description: ### 一、内容说明(相关的Issue) https://gitcode.com/openharmony/time_time_cangjie_wrapper/issues/31 ### 二、建议测试周期和提测地址 建议测试完成时间:xxxx.xx.xx 投产上线时间:xxxx.xx.xx 提测地址:CI环境/压测环境 测试账号: 无 ### 三、变更内容 * 3.1 关联PR列表 https://gitcode.com/openharmony/time_time_cangjie_wrapper/pull/46 * 3.2 数据库和部署说明 1. 常规更新 2. 重启unicorn 3. 重启sidekiq 4. 迁移任务:是否有迁移任务,没有写 "无" 5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无" 无 * 3.4 其他技术优化内容(做了什么,变更了什么) 根据仓上对应分支修改用例工程构建配置,Dev/Trunk分支修改为6.1.0-APILevel23,Cangjie-build-support同样匹配对应版本构建方式 主要修改: hvigor-config.json5文件 test目录下build-profile.json5文件 检查module.json5中的设备类型HarmonyOS工程为"phone",OpenHarmony工程对应为"default" * 3.5 废弃通知(什么字段、方法弃用?) 不涉及 * 3.6 后向不兼容变更(是否有无法向后兼容的变更?) 不涉及 ### 四、研发自测点(自测哪些?冒烟用例全部自测?) 自测测试结论: 测试通过 ### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方) 检查点: | 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 | |------|------------|----------|---------------| | xxx | 否 | 需要 | 不需要 | | | | | | 接口测试:不涉及 性能测试:不涉及 并发测试:不涉及 其他: See merge request: openharmony/time_time_cangjie_wrapper!46
Time Zone Cangjie Wrapper(beta feature)
Introduction
The Time Zone Cangjie Wrapper provides time zone-related capabilities for developers using the Cangjie language for application development on OpenHarmony. The Time Zone Cangjie Wrapper provides the ability to obtain the system time zone and only supports standard devices.
System Architecture
Figure 1 Time Zone Cangjie Interface Architecture
As shown in the architecture diagram:
Interface Layer:
- Time Zone Function Interface: Provides system time and system time zone functions. Developers can obtain the system time and time zone.
Framework Layer:
- -Time zone function encapsulation: This encapsulation layer is a Cangjie encapsulation implementation for obtaining system time and system time zone capabilities.
Dependency Component Introduction in Architecture Diagram
- time_service: Responsible for providing basic time zone functions.
- cangjie_ark_interop: Responsible for providing Cangjie annotation class definitions for API annotation, and providing BusinessException exception class definitions thrown to users.
- hiviewdfx_cangjie_wrapper: Responsible for providing log interfaces for printing logs at critical paths.
Directory
base/time/time_cangjie_wrapper
├── figures # Architecture diagrams in README
├── ohos
│ └── system_date_time # Cangjie time zone interface implementation
└── test
└── system_date_time # Cangjie time zone interface test code
Usage Instructions
Provides the following time zone functions:
- Get time elapsed from Unix epoch to current system time
- Get time elapsed since system boot
- Get system time zone
For time zone-related APIs, please refer to Time Zone API Reference. For relevant guidelines, please refer to the Time Zone Guide.
Constraints
Compared to APIs provided by ArkTS, the following functions are not currently supported:
- Setting system time
- Setting system time zone
- Creating/starting/stopping/destroying timers
Contribution
Developers are welcome to contribute code, documentation, etc. For specific contribution processes and methods, please refer to Contribution.
