openharmony_ci 355d55e527 !68 merge fws into master
llt test构建配置修改

Created-by: qq_35037212
Commit-by: fangwusheng
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)
https://gitcode.com/openharmony/notification_notification_cangjie_wrapper/issues/38


### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  无

### 三、变更内容
  * 3.1 关联PR列表
https://gitcode.com/openharmony/notification_notification_cangjie_wrapper/pull/68
  * 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/notification_notification_cangjie_wrapper!68
2026-04-09 12:19:42 +08:00
2025-09-26 20:38:55 +08:00
2026-02-09 11:43:15 +08:00
2026-02-09 11:43:15 +08:00
2025-11-22 18:10:51 +00:00
2025-11-28 15:09:40 +08:00
2025-08-13 15:01:14 +08:00
2025-08-14 15:39:45 +08:00
2025-10-07 15:50:19 +08:00
2025-10-07 15:50:19 +08:00

notification_notification_cangjie_wrapper(beta feature)

Introduction

The notification_notification_cangjie_wrapper provides common event management capabilities for developers using the Cangjie language for application development on OpenHarmony. OpenHarmony provides applications with the ability to subscribe, publish, and unsubscribe from common events through CES (Common Event Service). The currently open notification_notification_cangjie_wrapper only supports standard devices.

Common events can be divided into system common events and custom common events.

  • System common events: The system collects event information and sends it to user programs that have subscribed to the event according to system policies. For example: system events published by key system services, HAP installation, update, uninstallation, etc.

  • Custom common events: Applications customize some common events to implement cross-application event communication capabilities.

Each application can subscribe to common events as needed. If an application subscribes successfully and the corresponding subscribed common event is published, the system will send it to the application. These common events may come from the system, other applications, and the application itself.

System Architecture

Figure 1 notification_cangjie_wrapper architecture

notification_cangjie_wrapper Architecture

As shown in the architecture diagram, the notification Cangjie API provides the capabilities to publish common events, create subscribers, subscribe, and unsubscribe.

Interface Layer:

  • CommonEventManager: Provides common event management capabilities for developers, including createSubscriber, subscribe, unsubscribe, and publish.
    • createSubscriber: Provides developers with the interface capability to create common event subscribers based on subscription information, where the subscription information can specify the subscribed common events, permissions required by event publishers, and set the subscriber's priority, etc.
    • subscribe: Provides developers with the subscription interface capability for specified subscribers, used to obtain relevant information about subscribed common events and set common event processing information.
    • unsubscribe: Provides developers with the unsubscribe interface capability for specified subscribers.
    • publish: Provides developers with the interface capability to publish common events with specified content and attributes.

Framework Layer:

  • CommonEventManager Wrapper: Implements common event management wrapper based on the underlying common event service, including the capabilities to create subscribers, subscribe, publish, and unsubscribe from common events.

Dependency Components Introduction in Architecture:

  • common_event_service: Depends on the common event service for framework layer capability implementation.
  • hiviewdfx_cangjie_wrapper: Depends on HiLog capabilities for printing logs at key points.
  • cangjie_ark_interop: Depends on APILevel class definitions and BusinessException class definitions for API annotation and throwing exceptions to users in error branches.

Directory Structure

base/notification/notification_cangjie_wrapper
├── figures         # architecture pictures
└── ohos            # Cangjie notification interface implementation
│   ├── common_event_data           # Common event data module
│   ├── common_event_manager        # Common event management module
│   ├── common_event_publish_data   # Common event publish data module
│   ├── common_event_subscribe_info # Common event subscribe info module
│   ├── common_event_subscriber     # Common event subscriber module
│   └── value_type                  # Common event multi-value type implementation
└── test            # Cangjie notification test cases
    └── common_event_manager # Common event test cases

Usage

The current notification Cangjie API provides the following functions:

  • CommonEventManager.

For common event related APIs, please refer to ohos.common_event_manager. For related guidelines, please refer to Common Event Development Guide.

Constraints

Compared to ArkTS API, the following functions are not supported:

  • The ability to send and process events between different threads within the same process or within the same thread.
  • User notification service.

Code Contribution

Developers are welcome to contribute code, documentation, etc. For specific contribution processes and methods, please refer to Code Contribution.

Repositories Involved

arkcompiler_cangjie_ark_interop

hiviewdfx_hiviewdfx_cangjie_wrapper

notification_common_event_service

S
Description
事件通知子系统仓颉封装层
Readme 4.4 MiB
Languages
Cangjie 98.3%
Python 0.9%
TypeScript 0.8%