1.0.2 • Published 5 months ago
@arms/rum-harmonyos-plugin v1.0.2
Alibaba Cloud RUM Harmony Plugin
This plugin is used to inject Alibaba Cloud RUM monitoring code into HarmonyOS applications.
Installation
- Add the plugin to your project's
hvigor/hvigor-config.json5file:
{
"dependencies": {
"@arms/rum-harmonyos-plugin": "^1.0.2"
}
}- Run the following command in your project root directory to sync dependencies:
hvigorw --syncUsage
- Create a configuration file named
alibabaCloudRumConfig.txtin your project root directory:
-hook <path>: Specify the directory or file to be processed-keep <path>: Specify the directory or file to be excluded from processing example:
-hook ./src/main/ets/
-keep ./src/main/ets/hook/- Add the plugin to your project's build configuration:
import { AlibabaCloudRumPlugin } from '@arms/rum-harmonyos-plugin';
// In your build configuration
export default {
plugins: [
AlibabaCloudRumPlugin() // 注意这里需要调用函数
]
};Configuration
The alibabaCloudRumConfig.txt file supports the following directives:
-hook <path>: Specify the directory or file to be processed-keep <path>: Specify the directory or file to be excluded from processing
License
Apache-2.0