Commit Graph

6715 Commits

Author SHA1 Message Date
qiuguohua cc47fce6bc HarmonyOS Next implements game.end interface (#18473) 2025-03-17 19:39:50 +08:00
GJ d0fd640f93 Fix renderDrawInfo is not cleared in 'onDisable' callback on native platforms (#18467) 2025-03-17 16:47:19 +08:00
James Chen 832f7ad6ee Simulator needs to be built with physics-2d-box2d-jsb feature (#18469) 2025-03-17 15:02:53 +08:00
bofeng-song 622d2c4763 Resolve compilation warnings for skeletonDataMgr in the Spine module (#18464) 2025-03-14 12:38:37 +08:00
qiuguohua 623b49c066 Fix duplicate add achievement issue (#18462) 2025-03-14 09:42:11 +08:00
qiuguohua b22e62dc52 Fix the issue where Google Play crashes randomly (#18460)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-03-13 22:51:59 +08:00
qiuguohua 84e22abab8 Fix the crash caused when getResult throws an exception. (#18459)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-03-13 22:09:40 +08:00
qiuguohua 949705bdcc Support Google Play Achievement (#18456) 2025-03-13 22:08:31 +08:00
bofeng-song 7e753818d5 Only print warning if spine assets aren't compatible with spine runtime (#18452) 2025-03-13 12:55:15 +08:00
James Chen 15f7112f62 Fix box2d jsb windows link errors (#18442) 2025-03-11 18:45:39 +08:00
James Chen df14403ac5 Update external-config to v3.8.6-11 (#18435) 2025-03-10 23:56:34 +08:00
qiuguohua 1527988573 Task callbacks run on non-main threads (#18432)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-03-10 15:19:44 +08:00
dependabot[bot] d1bd3d519a Bump axios from 0.21.2 to 1.8.2 in /native/tools/gles-wrangler-generator (#18430)
Bumps [axios](https://github.com/axios/axios) from 0.21.2 to 1.8.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.2...v1.8.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-10 10:21:40 +08:00
James Chen 15a487cedc Fix memory leak for spine::Vector::setSize (#18431) 2025-03-10 09:47:06 +08:00
qiuguohua f80ca2cceb Implementation of google play auto login, achievements, PGS Recall API (#18416) 2025-03-09 23:34:12 +08:00
James Chen 9d51fe2c54 Fix PhysX wasm memory leak and update PhysX to 4.1.2.29882248 to memory overflow issues. (#18420) 2025-03-09 19:33:24 +08:00
bofeng-song 80f05517d8 Print a error info to console while parse unsupported spine version (#18414) 2025-03-07 16:05:32 +08:00
wdzhangchukong dcdf54d6f3 Support WebAssembly and WebGPU in runtime base platform (#18389) 2025-03-05 13:39:48 +08:00
James Chen 70ecb139ea Update spine 4.2 runtime to 268d0e8 (#18400) 2025-03-05 11:16:41 +08:00
James Chen 69533159fa Optimize std::vector allocation in js_register_spine_initSkeletonData. (#18408) 2025-03-04 18:37:14 +08:00
James Chen a437ada01c Fix EditBox crash on macOS platform because of invalid v8::HandleScope. (#18407) 2025-03-04 18:28:01 +08:00
James Chen deacae967a Refactor cc::ArrayBuffer, move most implementation code to cpp file. (#18406) 2025-03-04 18:27:28 +08:00
James Chen 9aad4d4984 Fix some memory leaks of JSVM backend for HarmonyOS next platforms (#18404)
* Fix a memory leak of JSVM_Ref for se::Class::_constructor.

* Fix memory leaks of se::Object instances associated with Spine objects.

* JSVM code cache is not supported now, doesn't need to create code cache since it's not consumed.

* Fix a JSVM check in Engine.cpp
2025-03-04 17:25:09 +08:00
James Chen 0876168e37 Support JSVM API on non-openharmony platforms which will make debugging JSVM API easier. (#18398)
* Support JSVM API on non-openharmony platforms which will make debugging JSVM API easier.

JSVM v8 backend source code is copied from https://gitee.com/openharmony/third_party_node/tree/OpenHarmony-v5.0.2-Release

* CI test JSVM v8 backend.
2025-03-03 16:29:26 +08:00
James Chen 8e7e4e07d9 Remove unused code in jsvm/Object.cpp, napi/Object.cpp (#18394) 2025-03-03 15:14:40 +08:00
James Chen 7aabfbc011 Simplify se::Object::createJSONObject for OH JSVM backend. (#18396) 2025-03-03 15:13:56 +08:00
James Chen 2bab938c4a Optimize se::ScriptEngine::callFunction for openharmony. (#18399) 2025-03-03 15:13:12 +08:00
James Chen 5196b3c107 Optimize JS -> Native Object conversion for JSVM and NAPI script engine backend. (#18393) 2025-03-03 11:51:14 +08:00
James Chen f0bd5ad6f1 Fix memory leaks for HarmonyOS Next. (#18392) 2025-03-03 11:45:15 +08:00
James Chen 3657af1623 Fix SpineSkin test case crash after merging PR #18325 . (#18385) 2025-02-27 22:03:27 +08:00
qiuguohua 9fba3a7006 Cross threading problem optimization (#18384)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-02-27 22:01:11 +08:00
Cocos Robot cd28b7396b [ci skip][AUTO]: Automated code generating update: 929b42cd2a5d623cdb4fa0a6e8487ba91498afba (#18325) (#18380)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2025-02-27 11:12:17 +08:00
bofeng-song b2316fc02f Support spine version 4.2 (#18325) 2025-02-26 18:56:42 +08:00
James Chen 9730ac0015 fixed #18374: 2D Node with MotionStreak and Rigidbody has wrong offset (#18375) 2025-02-26 16:58:30 +08:00
tangkai b08a406d07 Support box2d JS binding which improves the performance of 2D physical system for native platforms . (#18152) 2025-02-24 19:22:06 +08:00
qiuguohua f19bdb1290 HarmonyOS Next Platform Fixes High CPU Load When Using libwebsocket (#18357)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-02-21 13:35:17 +08:00
James Chen fca7d7ba5a Fix WebSocket potential crash while exiting game or restart ScriptEngine. (#18351) 2025-02-21 09:29:19 +08:00
bofeng-song a95bf6d816 Refine: move modify logic for updateList to 'update' (#18344) 2025-02-18 15:37:56 +08:00
bofeng-song 41d844713e Fix spine's crash due to destroy called after animation play complete. (#18342) 2025-02-17 23:01:47 +08:00
James Chen 27f4ae172a Build universal package ( x86_64, arm64 ) for simulator. (#18338) 2025-02-17 15:27:14 +08:00
qiuguohua 24cdcbabb0 Fix JSVM's inability to output logs using console.log (#18329)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-02-14 10:45:42 +08:00
qiuguohua a20bb447a0 Fix cross threading issue when calling callStatic Method (#18316)
* Fix cross threading issue when calling callStatic Method

* Rename AsyncCallParam to CallParam

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-02-11 16:46:31 +08:00
James Chen b7cc23d0ce Add support for rotational skew. (#18307)
Rotational Skew is also supported in Cocos2D-X.
See https://github.com/cocos2d/cocos2d-x/blob/v4/cocos/2d/CCNode.h#L638
2025-02-11 10:21:21 +08:00
James Chen e5cb7f37c4 Revert to use clang-tidy-11 (#18311)
* Revert to use clang-tidy-11
2025-02-11 09:40:40 +08:00
Cocos Robot 8ae4dcf8a3 [ci skip][AUTO]: Automated code generating update: e94e3d16a86fc666e73706bfe5cd5a8ba253d5af (#18284) (#18304)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2025-02-10 13:39:38 +08:00
qiuguohua 61e72cc487 Fix restart crash on HarmonyOS NEXT platform when using JSVM (#18300)
* Fix restart crash on HarmonyOS NEXT platform when using JSVM.

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-02-10 11:38:22 +08:00
hyde zhou b9bf293b29 disable probe blend (#18292)
* disable probe blend
2025-02-10 11:22:24 +08:00
hyde zhou 523d9828fe remove deferred reflection shaders (#18281)
* remove deferred reflection shaders
* fix test shader
* remove reflectionTex
2025-02-07 14:01:45 +08:00
James Chen f93780265f Sync node.ts changes from PR #18280 for native platforms. (#18285) 2025-02-07 09:38:12 +08:00
hyde zhou f94a843dc9 turn off misc-include-cleaner (#18283) 2025-02-06 17:42:29 +08:00