19 Commits

Author SHA1 Message Date
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 <[email protected]>
2023-09-01 16:27:08 +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
Santy-Wang
39e7a332ed fix editor preview error (#15290) 2023-06-07 18:39:56 +08:00
qiuguohua
e68506916c Develop branch adapts to openharmony (#14582) 2023-03-20 14:18:52 +08:00
bofeng-song
26bd717d0f Fix the native platform using the wrong FontFace (#13932) 2022-12-28 14:46:42 +08:00
王凯鹏
0c96b6110b [Bug] fix : rename require in editor env (#13843) 2022-12-17 15:21:53 +08:00
江战
f6854cd16e native introduce jsb.window (#13816) 2022-12-16 13:50:59 +08:00
PP
63ea860a21 HMR (#12524) (#13202) (#13427)
Co-authored-by: Leslie Leigh <[email protected]>
2022-11-21 09:53:26 +08:00
Santy-Wang
7bc135e1c7 adjust initialization process (#11143)
* adjust init process

* fix bugs

* restructure

* tweak

* delete useless code

* fix ci

* support more platform and fix some bugs

* mark internal

* tweak

* add docs

* add docs and little adjustment

* fix bugs

* adjust decorator execute order

fix mesh error

* fix bugs

* revert some change

* revert auto-generated code

* revert auto-generated code
2022-07-03 21:16:09 +08:00
Santy-Wang
9ed30ce2c9 change extension of ccon (#9091) 2021-07-29 16:48:33 +08:00
Santy-Wang
617adca055 strip extension and change extension in minigame (#9061) 2021-07-24 20:11:41 +08:00
Santy-Wang
41e0656cfa support cconb in other platform (#9055)
* support cconb in minigame

* preprocess extension

* refine

* remove generic type

* dont change ext
2021-07-23 22:36:27 +08:00
PP
960dc20334 compability with AudioClip method since deprecated on v3.1.0 (#8905) 2021-06-29 10:33:13 +08:00
江战
2a2719a79c HarmonyOS support (#8679) 2021-05-21 15:42:37 +08:00
Santy-Wang
2f8090ba7f move importBundleEntry to factory (#8339) 2021-04-16 15:39:32 +08:00
PP
e345039c86 fix audio loading (#8449)
* fix audio loading

* fix  audio loading in minigame
2021-04-14 14:50:41 +08:00
PP
cd7e644694 implement audio on pal (#8255)
* Update logo in README

* add pal/audio

* deprecate property

* support wechat  game AudioPlayer

* unify minigame interface

* optimize module name

* support  native audio

# Conflicts:
#	@types/jsb.d.ts

* add runtime platform

* fix module

* support build native virtual module

update

update

* update module name

* remove jsb-audio.js

* revert @rollup/plugin-alias

* add quickCompiler field in cc.config.json

* fix audio can't stop when paused

* fix esLint & ci

* fix ci

update

* update ccConfigJson

* add NOTE

* readonly maxAudioChannel

* add description for interface OneShotAudio

* volume range

* range for seeking

* loadNative return Promise<unknown>

* remove quickCompile field in cc.config.json

Co-authored-by: pandamicro <[email protected]>
Co-authored-by: Jare Guo <[email protected]>
2021-03-25 14:30:13 +08:00
PP
e3e1db619f move port/native into platforms/native (#7963)
* Revert "move in port/native to platforms/native (#7962)"

This reverts commit 96871ba26b.

* move port/native into platforms/native
2020-12-15 12:43:16 +08:00