Tencent / Tencent/libpag

libpag将OC/mac 平台相关文件打包到鸿蒙版本ets文件里面,导致 编译问题

Open
#3,727 0 comments 0 reactions 1 assignee View on GitHub

@kevingpqi123 is already working on this.

Since Sep 14, 2026.

Dominant language
HTML
Stars
5.8k
Forks
531
Avg merge
8d 55m
Merged PRs (30d)
17

Description

【版本信息】

libpag 4.5.94

【平台信息】

HarmonyOS 平台

【预期的表现】

正常编译

【实际的情况】

正编译报错

【Demo及附件】

src/main/ets 目录下混入了 OC/mac 平台相关文件,导致 HarmonyOS 编译失败
修复建议:维护方在构建 HAR 包时,应通过 .ohpmignore 文件排除非 HarmonyOS 平台的文件3,或将这些文件移至 ets 目录之外
.ohpmignore 文件的配置方式是在模块根目录下创建该文件,将需要排除的文件/目录写入其中,构建时会自动过滤这些文件。

详见:libpag -src-main-ets-.PAGFile.js文件,用DevEco Studio打开是乱码.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.