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

@oh-expo/expo-application

v55.0.19-harmony.0

Published

expo-application 的 HarmonyOS 适配包(ExpoModule 原生模块,expo-modules-core 体系)

Readme

@oh-expo/expo-application

让 expo-application(应用信息)在 HarmonyOS / OpenHarmony 上运行的适配包。 通过 expo-modules-core 体系提供 ExpoApplicationModule 原生模块(模块名 ExpoApplication: 4 常量 + 2 方法,接口收口自 [email protected] 权威 d.ts)。

支持基线

| 项 | 值 | | --- | --- | | 适配目标 | [email protected] | | 运行时底座 | @expo-harmony/[email protected](本地 HAR) | | 鸿蒙 SDK | API 26(SDK 26.0.0 锚定,@ohos.bundle.bundleManager + @ohos.deviceInfo + resourceManager) | | 权限 | 无 |

实现面(接口收口 + 诚实分级)

  • 常量:applicationName(labelResource/labelId 资源解析,label 兜底)/ applicationId(BundleInfo.name)/ nativeApplicationVersion(versionName)/ nativeBuildVersion(versionCode 字符串化);
  • 方法:getInstallationTimeAsync(firstInstallTime,API 18+ 收窄)/ getLastUpdateTimeAsync (updateTime),时间戳安全整数校验。
  • 诚实分级:getAndroidId/getInstallReferrerAsync(Android 专属)、 getIosIdForVendorAsync/getIosApplicationReleaseTypeAsync/getIosPushNotificationServiceEnvironmentAsync (iOS 专属)无对应鸿蒙能力,harmony 侧不注册。

快速开始(宿主接入)

  1. 安装(npm):npm install @oh-expo/expo-application(peer 自动带 expo-application 原包与 expo-modules-core);
  2. 从 node_modules/@oh-expo/expo-application/local-hars/ 拷贝 expo_application.har 到宿主 harmony/local-hars/,宿主 oh-package.json5 依赖 "@oh-expo/expo-application": "file:local-hars/expo_application.har" (ohpm 公共源无 @oh-expo scope,本地 HAR 必须用相对路径);
  3. expo-modules 体系模块经 expo-modules-core 运行时注册(无需改 RNOHPackagesFactory);
  4. JS 侧直接 import * as Application from 'expo-application'(对外契约由原包提供)。

构建与校验

pnpm har:prepare    # hvigorw assembleHar → local-hars/expo_application.har
pnpm har:prepack    # 发布前校验(必需文件 / scope / -harmony.N 版本 / HAR 产物)

状态与来源

  • ⚠️ 实现已落盘(接口收口自 npm 实包权威 d.ts,锚定 SDK 26 真实 API); 编译与宿主接入验证状态见 expo-harmony 主仓 [acceptance/ledger.md](S4 前置门口径)。
  • 适配细节与接口规格:expo-harmony 主仓 docs/adaptations/expo-application.md。