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.json5
file:
{
"dependencies": {
"@arms/rum-harmonyos-plugin": "^1.0.3"
}
}
- Run the following command in your project root directory to sync dependencies:
hvigorw --sync
Usage
- Create a configuration file named
alibabaCloudRumConfig.txt
in 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';
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