1.0.2 • Published 5 months ago

@arms/rum-harmonyos-plugin v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 months ago

Alibaba Cloud RUM Harmony Plugin

This plugin is used to inject Alibaba Cloud RUM monitoring code into HarmonyOS applications.

Installation

  1. Add the plugin to your project's hvigor/hvigor-config.json5 file:
{
  "dependencies": {
    "@arms/rum-harmonyos-plugin": "^1.0.2"
  }
}
  1. Run the following command in your project root directory to sync dependencies:
hvigorw --sync

Usage

  1. 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/
  1. 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

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago