仓颉包管理封装
| Files | Last commit | Last update |
|---|---|---|
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago |
bundlemanager_cangjie_wrapper
Introduction
The Cangjie API is a Cangjie API encapsulated on OpenHarmony based on the capabilities of the Bundle Management subsystem. The Bundle Management subsystem allows you to query bundle information. The currently bundle manager Cangjie api only supports standard devices.
System Architecture
Figure 1 System architecture of bundlemanager_cangjie_wrapper

As shown in the architecture:
- getBundleInfoForSelf: Obtains the bundle information.
- getProfileByAbility getProfileByExtensionAbility: Obtains the JSON string array of the current application's configuration.
- canOpenLink: Checks whether a link can be opened.
- Cangjie Bundlemanager FFI interface: Based on cross-language interoperability via C interfaces to implement bundlemanager Cangjie API.
- bundle_framework: It is responsible for providing basic functions of bundlemanager, and encapsulates C interfaces to provide interoperability for Cangjie.
Directory Structure
foundation/bundlemanager/bundlemanager_cangjie_wrapper
├── figures # architecture pictures
├── ohos # Cangjie Bundle Management code
│ ├── bundle # Cangjie bundle code
│ ├── element_name # Cangjie ElementName code
│ ├── metadata # Cangjie Metadata code
│ └── skill # Cangjie Skill code
└── test # Cangjie test code
Usage Guidelines
The following features are provided:
- The module provides APIs for obtaining this application information.
- Obtains the json string array of the current application's configuration file.
- Checks whether a link can be opened.
The following features are not provided yet:
- Obtain other application information.
- Install capabilities for application bundles.
- Update capabilities for application bundles.
- Uninstall capabilities for application bundles.
- Store bundle information.
For Bundlemanager-related APIs, please refer to ohos.bundle.bundle_manager (BundleManager Management). For relevant guidance, please refer to Ability Kit Guide.
Code Contribution
Developers are welcome to contribute code, documentation, etc. For specific contribution processes and methods, please refer to Code Contribution.
Repositories Involved
bundlemanager_bundle_framework