Commit Graph

303 Commits

Author SHA1 Message Date
James Chen 8904950c70 [v3.8.5] Fix that bytedance platform adapter code hacked cc.ImageAsset.data. (#17825) 2024-11-08 12:36:49 +08:00
James Chen b6e8c8c8bf [v3.8.5] Fix visiting private properties in jsb-editbox.js (#17749) 2024-10-22 11:01:10 +08:00
bofeng-song 433e4575e7 Fix the issue on the Alipay platform caused by incorrect type usage after my.request failure. (#17738)
* Fix the issue on the Alipay platform caused by incorrect type usage after my.request failure.
2024-10-22 10:32:08 +08:00
bofeng-song b34203f33c Fix adapter's error on taobao platform (#17734) 2024-10-17 16:31:28 +08:00
lanbinqiang a72d870229 [bug] fix migu platforms subpackage load fail (#17733)
Co-authored-by: lbq <563294062@qq.com>
2024-10-17 14:48:40 +08:00
James Chen f4ccf3a8bb [v3.8.5] Support inline enum and mangle private variables to reduce engine size. (#17703) 2024-10-15 10:17:16 +08:00
bofeng-song 1ecdb7cc59 fix running error on taobao platform (#17699) 2024-10-11 14:51:08 +08:00
bofeng-song d5f292c60c Taobao platform supports removing forward declarations of global variables. (#17691) 2024-10-10 14:33:33 +08:00
lanbinqiang 7bbc5faf60 Added MIGU channel identifiers (#17687)
Co-authored-by: lbq <563294062@qq.com>
2024-10-10 09:34:29 +08:00
bofeng-song 684974dcf9 Fix the incorrect usage of the closure variable 'this' (#17650)
* Fix the incorrect usage of the closure variable 'this'
2024-09-19 13:53:19 +08:00
bofeng-song 4edbf5bd8e Opacity already includes the alpha value from the color. The batcher2d's walk function implements the calculation of opacity. (#17509)
* Web's opacity already includes the alpha value from the color. The batcher2d's walk function implements the calculation of opacity.
2024-08-07 17:02:23 +08:00
finscn ec8270eb7f reduce the invocation of get skeletonJsonStr (#17435) 2024-08-02 09:46:31 +08:00
James Chen ab6b7bb70c fixed #17012: Loading assets synchronously causes rendering to freeze. (#17464) 2024-07-31 22:01:24 +08:00
bofeng-song 62addd9ceb Fix label's adapter can not work normally for mini-game platform(alipay, taobao, bytedance) (#17407) 2024-07-24 17:51:18 +08:00
bofeng-song 89f966f80b Since the online game is already using the Taobao API, it needs to be adapted by the engine. (#17406)
* Revert "Due to the single-instance version of the WebSocket, the onMessage response res contains only one layer of data. For compatibility with the online game, Taobao removed the extra layer of data (#17389)"

This reverts commit 2f4e6d3caa.

* Since the online game is already using the Taobao API, it needs to be adapted by the engine.
2024-07-24 09:39:52 +08:00
WingStone 6f7c011942 typo fixed (#17253) 2024-07-19 16:40:12 +08:00
bofeng-song 2f4e6d3caa Due to the single-instance version of the WebSocket, the onMessage response res contains only one layer of data. For compatibility with the online game, Taobao removed the extra layer of data (#17389) 2024-07-18 16:28:26 +08:00
tangkai ede81072aa 385 adapter the taobaominigame ClearLRU procedure (#17373)
* 385 adapter the taobaominigame ClearLRU procedure

* Extract common code

* rename the function _remove to _removePathOrFile

* shorter the warn log
2024-07-18 14:44:23 +08:00
vivi32767 c1f29fc365 fix taobao mini game MultiWebSocket some issues (#17349)
* fix taobao mini game MultiWebSocket refrence issue

* fix taobao mini game MultiWebSocket onMessage data format change issue
2024-07-17 09:40:13 +08:00
qiuguohua ce86b1206a Fix videoplay playback problem on ByteDance platform (#17362)
* Fix videoplay playback problem on ByteDance platform

* Modify member name from cameraNode to videoNode

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-07-16 14:05:12 +08:00
minggo 1cbc7bb406 Revert "384 adapter the taobaominigame ClearLRU procedure (#17230)" (#17371)
This reverts commit bf4fcbe585.
2024-07-16 11:04:05 +08:00
bofeng-song 9b76e09077 Fix issues with WebSocket onMessage and onClose callbacks on the Taobao Mini Game platform. (#17360)
* Fix issues with WebSocket onMessage and onClose callbacks on the Taobao Mini Game platform.

* refine
2024-07-16 11:00:05 +08:00
tangkai bf4fcbe585 384 adapter the taobaominigame ClearLRU procedure (#17230)
* 384 adapter the taobaominigame ClearLRU procedure
1.taobao platform will clear tmp folder automatically.
2.when cachecount below 3, it will trigger LRU.
3.zip file, the path maybe is a zipfile.
2024-07-16 10:42:27 +08:00
bofeng-song ea0018b9c6 Use the API to determine if the Taobao platform supports websocket multiple instances. (#17336)
* Use the API to determine if the Taobao platform supports websocket multiple instances.
2024-07-09 17:17:17 +08:00
James Chen 590c3c6472 Fix eslint errors in AssetManager.js, cache-manager.js (#17324)
* Fix eslint errors in AssetManager.js, cache-manager.js

* Revert

* More `return` fixes.

* Tweak.
2024-07-08 14:35:08 +08:00
bofeng-song b2a4cb2161 Fix the logical error where the cleaning status of cacheManager is not being reset. (#17148) 2024-06-14 18:33:51 +08:00
bofeng-song 958de7dc68 Fix wrong screen size on TAOBAO_MINIGAME iPad device (#17107)
* Fix wrong screen size on TAOBAO_MINIGAME iPad device
2024-06-13 14:40:57 +08:00
bofeng-song 42f805579f Support multi instance of Websocket for taobao-minigame (#17014) 2024-06-05 16:08:11 +08:00
minggo 3e3a3b40e9 Merge pull request #16991 from cocos/v3.8.3
sync V3.8.3 to v3.8.5
2024-05-16 10:48:31 +08:00
minggo 7087c23f72 Revert "refine Skeleton's defaultSkin, defaultAnimation (#16635)" (#16972)
This reverts commit 69319a769c.
2024-05-11 14:27:30 +08:00
James Chen 7db7b125f8 fixed #16831: Error information is printed forever if there is an error is triggered in timer callback (#16833) 2024-03-28 11:42:17 +08:00
zhefeng.zhang a794083410 fix minigames failed to read files after executing clearLRU (#16707) 2024-02-05 11:03:04 +08:00
James Chen 118e50c8e8 Merge branch 'v3.8.2' of https://github.com/cocos/cocos-engine into v3.8.3
# Conflicts:
#	package-lock.json
#	package.json
2024-01-11 09:45:44 +08:00
James Chen e080cf17a7 Bytedance mini-game WASM support for both android and iOS platforms. (#16644) 2023-12-29 16:01:34 +08:00
bofeng-song 69319a769c refine Skeleton's defaultSkin, defaultAnimation (#16635) 2023-12-22 15:41:15 +08:00
James Chen 4ce3e6e64e fixed #16562: Wasm support for ByteDance minigame platform (#16628) 2023-12-20 09:54:54 +08:00
James Chen 7eb06c9da7 Fix cc.assetManager.downloader.maxConcurrency is overrode by mistake on mini-game platforms. (#16565) 2023-12-15 16:06:15 +08:00
bofeng-song d25d3b1fa5 Fix the socket target in Spine is not functioning correctly (#16572) 2023-12-07 17:36:06 +08:00
James Chen 42691dd12a Fix eslint warnings for javascript files. (#16450) 2023-10-30 10:49:08 +08:00
Ling Zhan 9a42164966 V3.8.2 physics debug draw (#16325)
* init debug draw

* tweak _debugDrawFlags

* px debug draw performance opt

* tweaks

* add debug draw for physx c++

* debug draw use MainWindow's cameras

* builtin physics draw; WireFrame-->wireframe

* cannon.js supports debug draw

* update engine-native-external --> v3.8.2-5

* tweak

* set engine-native-external --> v3.8.2-5, so that we can pass npm test

* fix: bullet debug draw by default should draw nothing

* comment tweaks

* tweaek

* update native/external-config.json --> 3.8.2-8
2023-09-25 18:05:33 +08:00
bofeng-song c58cb54083 Fix the issue of sensitive character filtering being fixed still leads to its display. (#16261) 2023-09-19 13:34:40 +08:00
James Chen d2c3429f95 Refactor Openharmony platform code to support switching between napi (ark js runtime) and v8 (#16093)
* OH could use v8 now.

* napi addon works.

* Use Napi addon to refactor code.

* Fix compilation errors.

* tweak

* Refactor oh platform, remove some hacking for oh.

* Fix log in runScript.

* Fix the issues in napi mode.

* Revert.

* Remove an unused comment.

* Refactor log output in NapiHelper.cpp and OpenHarmonyPlatform.cpp

* Update oh template.

* Remove unused code.

* Remove unused debug log in jsb-gfx.js

* Update include

* Revert Screen::isDisplayStats.

* update OH template for v8 backend

* update

* Update CMakeLists.txt for OH

* Fix a compilation error in NapiHelper.cpp while switching to NAPI mode

* Keep the symbol of entry function.

* Add -Wl,--gc-sections and add -Wl,-s for release mode.

* Update external to 3.8.2-1

* Don't use `console.assert` directly.

* Remove oh specific methods ( getInnerWidth/Height, getWindowHandle ) in Device class.

---------

Co-authored-by: PP_Pro <chinese1236@qq.com>
2023-09-01 16:27:08 +08:00
mmyduckx 95acc35ab9 add some native feature for videoplayer (#16096)
* add some native feature for videoplayer

* fix review&clang-tidy

* update version
2023-08-25 14:23:37 +08:00
Yiwen bde3cd4cc3 Add adv mesh functionalities. (#16009)
* stage

* update

* update

* fix physics & ray cast problem

* fix default value, clean unused code, fix lint errors

* clean code

* update meta file

* update external, license

* fix tidy, circular dep

* fix type cast

* rm unit test

* fix unit test

* update comment
2023-08-21 10:15:24 +08:00
mmyduckx b0745d50be add bytedance videoplayer support (#16031)
* add bytedance videoplayer support

* refine
2023-08-18 16:16:47 +08:00
Ling Zhan cf8ceed661 V3.8.1 cct trigger (#15613)
* physx ts 支持

# Conflicts:
#	cocos/physics/framework/components/character-controllers/character-controller.ts
#	cocos/physics/framework/components/colliders/collider.ts
#	cocos/physics/physx/physx-world.ts

* add bullet-character-controller trigger events

* physx c++ add cct trigger

* tweaks

* tweaks

* tweaks

* tweak

* tweaks

* physics jsb: emitCCTShapeEvent --> emitCCTCollisionEvent
2023-08-18 10:47:59 +08:00
Ling Zhan 1dc3142fbb [opt] when move() is called, character controller sync physics position to scene; change default stepOffset; set minimum skinWidth (#15966)
* [opt] [character controller] when move() is called, character controller sync physics position to scene immediately; change default stepOffset from 1.0 to 0.5; set minimum skinWidth 0.001

* tweak

* native

* eslint

* eslint

* eslint
2023-08-17 17:34:04 +08:00
Leslie Leigh (李的序) ceb15e9410 Optimize CCON downloading code (#15950) 2023-08-14 15:45:24 +08:00
Santy-Wang e09252efd8 export downloadJson and downloadArraybuffer (#15905)
* export downloadJson and downloadArraybuffer

add underscore

* Update cocos/asset/asset-manager/downloader.ts

* Update cocos/asset/asset-manager/downloader.ts

* fix lint

* fix lint
2023-08-14 14:11:18 +08:00
zxx43 60b5a7de66 3.8.1 add spine jsb apis (#15674)
* open some spine apis

* add some apis

* add spine jsb convert

* add some manual interfaces

* fix some jsb

* fix getAttachments

* remove findAttachmentsForSlot

* manual VertexEffect::begin

* remove SkinEntry

* change some apis

* fix isObject

* use entry ptr instead of entry

* remove array.get()

* remove array.get()

* fix ci

* fix ci

* change include

* fix SWIGINTERN

* fix test-case

* use rename

* check spine instance null

* fix eslint

* fix eslint

* add some missing apis

* add getAttachmentByName

* modify jsb api

* fix eslint
2023-08-11 14:07:30 +08:00