npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@expo-harmony/expo-build-properties

v57.0.22-harmony.1

Published

HarmonyOS port of expo-build-properties

Readme

@expo-harmony/expo-build-properties

GitHub 仓库

为 HarmonyOS 上的 React Native 应用提供 Expo Build Properties 的 HarmonyOS 构建配置,与官方 expo-build-properties 配套使用。

安装

本包适配 Expo SDK 57。

npm install @expo-harmony/expo-build-properties

API 对照表

这是一个配置插件,不提供应用运行时 API。以下 API 用于 HarmonyOS 构建配置。

Methods

withBuildProperties

HarmonyOS 构建属性配置插件。可选配置参数的类型为 PluginConfigType。

withBuildPropertiesDefaults

在 HarmonyOS 构建配置中应用该包的默认构建属性,不接收配置参数。

Types

PluginConfigType

插件配置对象。harmony 可省略;其配置项见 HarmonyBuildProperties。

HarmonyBuildProperties

harmony 对象支持以下配置项。

compatibleSdkVersion

应用兼容的最低 HarmonyOS SDK 版本,类型为 number | string,默认 API 20。该值须符合应用原生依赖的最低要求,且所选版本须由本机 DevEco 环境提供。

API 12 至 24 可用数字表示,也可写为对应的完整 SDK 版本字符串,例如 24 或 "6.1.1(24)"。API 26 起可使用数字或点分隔版本字符串,例如 26、"26.0.0" 或 "26.1.0"。最低兼容版本不能高于目标版本。

targetSdkVersion

应用目标 HarmonyOS SDK 版本,类型和版本格式与 compatibleSdkVersion 相同,默认 API 24。

abiFilters

指定要构建的原生库 CPU 架构,类型为 string[],默认值为 ["arm64-v8a", "x86_64"]。HarmonyOS 构建须至少选择 arm64-v8a 或 x86_64 中的一种。

nativeCompiler

指定 C/C++ 原生编译器,可选 "Original" 或 "BiSheng"。生成工程默认使用 "BiSheng"。

nativeLib.filter

原生 .so 文件筛选规则,类型为 NativeLibFilter。筛选语法遵循 Hvigor 原生库配置,例如 "**/libexample.so"。

compressNativeLibs

是否将 .so 库压缩后打包进 HAP,类型为 boolean,默认值为 false。

extractNativeLibs

安装时是否将 .so 库解压到应用安装目录,类型为 boolean,默认值为 true。从 HarmonyOS API 20 起支持此配置。compressNativeLibs 和 extractNativeLibs 同时设为 false 时,应用安装时不解压 .so 库。详见 模块配置文件。

release.debugSymbol

设置 release 构建的 .so 符号处理,类型为 DebugSymbol。未指定时保留已有构建设置;若没有已有设置,则使用 Hvigor 的默认值。

release.obfuscation

设置 release 构建的 ArkTS 混淆,支持 enable: boolean 和可选的 files: string[]。enable 为必填项;files 指定混淆规则文件路径,可使用相对于应用根目录的路径或绝对路径。未指定此项时不新增混淆设置。规则语法参见ArkTS 混淆配置。

compileSdkVersion
  • 不提供此配置项;编译 SDK 使用 DevEco 配套 SDK 的默认版本。

NativeLibFilter

nativeLib.filter 的筛选字段。

excludes

匹配的 .so 文件不会打入 HAP,类型为 string[]。

pickFirsts

匹配同名 .so 文件时打包优先级最高的候选文件,类型为 string[]。

pickLasts

匹配同名 .so 文件时打包优先级最低的候选文件,类型为 string[]。

enableOverride

同名 .so 文件存在优先级差异时,是否允许高优先级文件覆盖低优先级文件,类型为 boolean,默认值为 false。

select

按依赖包选择原生库,类型为 NativeLibSelection[],优先级高于其他筛选字段。每条规则指定 package,可用 version 限定依赖版本。使用 includePattern 和 excludePattern 匹配 glob,或用 include 和 exclude 匹配完整文件名。同一规则应使用一种匹配方式。 Hvigor 原生库配置

DebugSymbol

release 构建的 .so 符号处理字段。Hvigor 配置详情见原生库配置。

strip

是否剥离符号表和调试信息,类型为 boolean。未指定时沿用 Hvigor 默认值。

exclude

匹配的 .so 文件符号保留或剥离,类型为 string[]。strip: true 时,匹配项保留符号;strip: false 时,仅剥离匹配项的符号。

Author

expo-harmony © Baoshuo, Released under the MIT License. Authored and maintained by Baoshuo with help from contributors.

Personal Website · Blog · GitHub @renbaoshuo · Twitter @renbaoshuo