Skip to content

fix(huawei-agc): register onAfterCompressSettings hook and fix templa… - #931

Merged
star-e merged 1 commit into
cocos:v0.0.1-alpha.41from
oahcy:fix-build
Sep 10, 2026
Merged

fix(huawei-agc): register onAfterCompressSettings hook and fix templa…#931
star-e merged 1 commit into
cocos:v0.0.1-alpha.41from
oahcy:fix-build

Conversation

@oahcy

@oahcy oahcy commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

…te fallback path

huawei-agc inherits AndroidPackTool but its hooks.ts was missing the onAfterCompressSettings export, so nativePackToolMg.create() never ran and native/engine/huawei-agc/ (build.gradle, CMakeLists.txt) was never generated, breaking the gradle apply from: NATIVE_DIR + "/build.gradle".

Also fix the CMakeLists fallback copy in AndroidPackTool.create() to point at templates/android/template instead of platformTemplateDirInCocos, which resolves to the non-existent templates/huawei-agc/template for huawei-agc.

docs(android): correct huawei-agc template reuse comment

@oahcy
oahcy requested review from qiuguohua and tangkaikk and removed request for qiuguohua September 8, 2026 12:26
@oahcy oahcy self-assigned this Sep 8, 2026
…te fallback path

huawei-agc inherits AndroidPackTool but its hooks.ts was missing the
onAfterCompressSettings export, so nativePackToolMg.create() never ran and
native/engine/huawei-agc/ (build.gradle, CMakeLists.txt) was never generated,
breaking the gradle `apply from: NATIVE_DIR + "/build.gradle"`.

Also fix the CMakeLists fallback copy in AndroidPackTool.create() to point at
templates/android/template instead of platformTemplateDirInCocos, which
resolves to the non-existent templates/huawei-agc/template for huawei-agc.

Co-Authored-By: Claude Code <noreply@anthropic.com>

docs(android): correct huawei-agc template reuse comment

Co-Authored-By: Claude Code <noreply@anthropic.com>
@oahcy
oahcy requested review from Changdw and removed request for tangkaikk September 9, 2026 03:26
@oahcy oahcy closed this Sep 9, 2026
@oahcy oahcy reopened this Sep 9, 2026
@oahcy
oahcy requested a review from star-e September 9, 2026 09:11
@oahcy

oahcy commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

修复:[cli-alpha41]华为agc:编译失败

@oahcy
oahcy changed the base branch from main to v0.0.1-alpha.41 September 10, 2026 02:15
@star-e
star-e merged commit 4a1fdf8 into cocos:v0.0.1-alpha.41 Sep 10, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants