Socket
Book a DemoInstallSign in
Socket

@arms/rum-harmonyos-plugin

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arms/rum-harmonyos-plugin

Alibaba Cloud RUM plugin for HarmonyOS applications

latest
npmnpm
Version
1.0.3
Version published
Maintainers
6
Created
Source

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';

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

Keywords

harmonyos

FAQs

Package last updated on 18 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts