Commit Graph

7 Commits

Author SHA1 Message Date
qiuguohua fd7270c886 Synchronize HarmonyOS Next platform from cocos creator 2.4.14 (#18247)
* Synchronize the HarmonyOS Next platform update for 2.4.14
2025-01-24 13:48:35 +08:00
minggo 7251fd3efc merge v3.8.5 2024-12-23 10:34:45 +08:00
qiuguohua 2e4a9d57e0 Fix the incorrect orientation of the gravity sensor and JSVM crash issue in HarmonyOS Next (#18041)
* 1.Fix the problem of incorrect rotation direction of openharmony screen
2.Remove redundant files

# Conflicts:
#	templates/harmonyos-next/entry/src/main/ets/cocos/jsb-adapter/sys-ability-polyfill.js

* Fix the issue of JSVM running crash

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-12-17 10:43:39 +08:00
qiuguohua 59e00c9dae V3.8.5 oh api12 (#17869)
* Improvement of openharmony's editbox (#17042)

* Improvement of openharmony's editbox

* Remove redundant header file

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
# Conflicts:
#	templates/openharmony/entry/src/main/cpp/types/libcocos/index.d.ts
#	templates/openharmony/entry/src/main/ets/components/EditBoxDialog.ets
#	templates/openharmony/entry/src/main/ets/pages/index.ets
#	templates/openharmony/entry/src/main/ets/workers/cocos_worker.ts

* Upgrade the openharmony API to 12

* Remove debugging information

* Fix some bugs in the ark engine
Fix some issues with jsvm
* Release module_info

* Fix std::any_of return value not being used

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-11-19 09:32:08 +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
qiuguohua 125f8c8978 [OpenHarmony] Fix the problem of compilation failure on mac due to incorrect case (#14847) 2023-04-20 14:42:42 +08:00
qiuguohua e68506916c Develop branch adapts to openharmony (#14582) 2023-03-20 14:18:52 +08:00