Commit Graph

151 Commits

Author SHA1 Message Date
James Chen 4db86876dd Update ccbuild to 2.2.3 and some minor fixes (#16698)
* Update ccbuild to 2.2.3 and some minor fixes

* Update package-lock.json
2024-01-23 16:19:34 +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
媛媛 854e695781 remove build template config (#16640) 2024-01-03 11:25:01 +08:00
James Chen 4ce3e6e64e fixed #16562: Wasm support for ByteDance minigame platform (#16628) 2023-12-20 09:54:54 +08:00
James Chen 18247aff2b Update web templates, check wether polyfill file exists in index.html. (#16614) 2023-12-19 10:37:38 +08:00
bofeng-song dadd6188ab fix bullet can not work normaly at taobao-creative-app (#16544)
* fix bullet can not work normaly at taobao-creative-app

* update external version

* Revert "fix bullet can not work normaly at taobao-creative-app"

This reverts commit af12ac567b10b6f36b9735ae0d0332b0f15c36da.

* refine
2023-12-04 11:22:20 +08:00
媛媛 e3fd89c314 [Bug] fix vivo template (#16527) 2023-11-22 15:57:01 +08:00
James Chen db10a2624b Add openharmony CI support for v3.8.2 branch (#16170)
* Add openharmony CI support (#16151)

* Add ci support for Openharmony

* Add ci support for Openharmony

* Update native-compile-platforms.yml

* Update native-compile-platforms.yml

* Update ci yml

* Add executable permission for hvigorw

* Don't output too many log

* test hvigorw now

* Update ci yml

* Update ci yml

* Fix that could not find common/CMakeLists.txt

* build success

* Build hap package

* Update oh ci yml, save USE_SE_V8/USE_SE_NAPI to cfg.cmake

* Update oh ci yml
2023-09-01 18:07:06 +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
fqamic d78725eb3a Adaptation of the xr platform 3.8.1 modification (#16056)
* feat: xr sync android template for manifest

* fix: for xr platform, compatible with historical packaging tool usage

* improve: annotation optimization
2023-08-21 17:11:40 +08:00
江战 ac4fa74624 Windows: Suppressing the Warning When Linking (#15943) 2023-08-14 11:40:13 +08:00
mmyduckx 78e3b6eece add preferredScreenEdgesDeferringSystemGestures to prevent accidental touch (#15920) 2023-08-10 17:51:34 +08:00
oahc09 29bd5d6aa4 improve:remove constraint-layout dependency on spaces template (#15868) 2023-08-07 14:33:43 +08:00
PP 3c6a84934e fix some bugs for cyberpunk demo on OH platform (#15846)
* fix: bug on Destructuring Assignment syntax on OH

* [AOT] workaround skip Storage type checking on OH

* reuse fullscreen on OH platform
2023-08-03 10:29:33 +08:00
mmyduckx 326ba66a9a implement some wechat splashScreen features (#15827)
* implement some wechat splashScreen features

* fix unit-test may not get logo&background condition

* fix eslint
2023-08-02 14:34:50 +08:00
bofeng-song da25afce01 Modify compileType's default value to minigame (#15815) 2023-07-31 11:34:43 +08:00
bofeng-song 839a086eca Add smallestScreenSize to Manifest.xml (#15763) 2023-07-19 10:38:59 +08:00
minggo e5802a5e9c Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton-cache.ts
	cocos/spine/skeleton.ts
:	native/external-config.json
2023-07-18 11:53:54 +08:00
PP ebfcbb6228 [AOT] fix ts engine compile (#15745) 2023-07-17 14:24:48 +08:00
qiuguohua 39c57f0dbb v3.8 Support openharmony4.0 (#15708)
* Fix openharmony platform issues:
1. Fix xmlhttprequest request problems.
2. Repair the problem of not being able to display full screen.

* fix: crash on OH 4.0 (#15656)

* Openharmony adapted to the new Deveco(3.1 beta2) version

* Runtime environment using harmonyos

* Modifying configuration content

* Modify the usage syntax
Restore default values

---------

Co-authored-by: PP <chinese1236@qq.com>
2023-07-13 17:22:32 +08:00
mmyduckx b3eeaba86b add constrain for wechat logo default ratio (#15627)
* add constrain for wechat logo default ratio
2023-07-06 09:48:47 +08:00
minggo 7ef995b655 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/3d/lights/spot-light-component.ts
	cocos/animation/event/event-emitter.ts
	cocos/physics-2d/box2d/physics-contact.ts
	cocos/physics-2d/box2d/physics-world.ts
	cocos/physics-2d/box2d/platform/physics-contact-listener.ts
	cocos/physics-2d/builtin/builtin-world.ts
	cocos/physics/framework/components/constraints/configurable-constraint.ts
	cocos/spine/assembler/simple.ts
	cocos/spine/skeleton.ts
	native/cocos/editor-support/spine-wasm/spine-model.cpp
	native/cocos/editor-support/spine-wasm/spine-model.h
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h
	native/cocos/editor-support/spine-wasm/spine-type-export.cpp
	native/external-config.json
2023-07-03 15:25:13 +08:00
mmyduckx 620f68e3f5 revert partial useless code related wechat blackscreen repair (#15554) 2023-06-28 18:10:20 +08:00
minggo e7c5b34e18 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/2d/assembler/label/text-processing.ts
	cocos/physics/bullet/instantiated.ts
	cocos/profiler/profiler.ts
	cocos/rendering/custom/executor.ts
	cocos/rendering/custom/index.ts
	cocos/rendering/custom/web-pipeline.ts
	cocos/rendering/pipeline-scene-data.ts
	cocos/root.ts
	cocos/spine/assembler/simple.ts
	cocos/spine/lib/instantiated.ts
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton.ts
2023-06-27 13:35:35 +08:00
江战 f9d7a408c1 Refactor native-pack-tool/windows run logic (#15523) 2023-06-26 09:47:50 +08:00
oahc09 8a33f34a4e fix:spaces xr build template miss Log import (#15473) 2023-06-21 09:54:33 +08:00
江战 607c10cc4e 3.8 fix android gradle plugin version (#15417)
* bugfix: android gradle vesion

* rm applicationId
2023-06-19 17:05:04 +08:00
江战 8c41446e96 Add Android GPG keyboard & Mouse support (#15385)
* Add Android GPG keyboard & mouse support
2023-06-08 21:42:45 +08:00
mmyduckx 41c8ae81ec support displayRatio for wechat firstScreen (#15391)
* support displayRatio for wechat firstScreen

* use first-screen.ejs to replace first-screen.js
2023-06-08 21:39:29 +08:00
bofeng-song aaf7e5eb11 remove uneeded code & fix the issue of iOS not displaying in full screen. (#15352) 2023-06-07 15:23:45 +08:00
fqamic 8d925b01c5 feat: xr sync android template, support CJK app name (#15346) 2023-06-07 13:49:02 +08:00
oahc09 2503aa00b8 fix:xr template proguard add dontwarn for gvr sdk when using gradle v8.x (#15323) 2023-06-06 16:30:06 +08:00
江战 b898340ee0 Android support CJK app name (#15326) 2023-06-06 15:26:52 +08:00
fqamic 977edd434f feat: sync android template, update gradle 8.0.2 (#15318) 2023-06-05 16:08:48 +08:00
江战 c1d01b147f add proguard-configs for android/release (#15315) 2023-06-05 14:53:33 +08:00
bofeng-song a8eb030f90 fix install failed with android studio (#15251) 2023-06-01 13:40:11 +08:00
mmyduckx 4263d8861d fix slogan dislocation on android device (#15242)
* fix slogan dislocation on android device
2023-05-31 17:26:33 +08:00
qiuguohua 2a3695cba7 Add plugins js mapping (#15234) 2023-05-31 09:45:22 +08:00
fqamic 0b2e71c9c5 feat: sync android template for xr platform (#15225) 2023-05-30 14:48:56 +08:00
mmyduckx 04a41eb9c5 fix wechatgame short black screen after first screen (#15209)
* fix wechatgame short black screen after first screen

* fix wechatgame firstScreen display misalignment

* add comment for ratio value
2023-05-29 11:36:28 +08:00
oahc09 ef2691bc7d improve:xr build template add namespace config for libservice module (#15140) 2023-05-24 09:39:33 +08:00
oahc09 03e8052cfd improve: xr meta build template add new uses-feature to support anchor (#15120) 2023-05-24 09:38:38 +08:00
mmyduckx 1de91bf03c fix android instant game webview (#15103) 2023-05-19 09:30:18 +08:00
fqamic 73ebb4acb6 feat: xr platform sync android template and update spaces sdk (#15035) 2023-05-14 23:10:52 +08:00
mmyduckx c038383c3b Wechatgame splashscreen update (#15015)
* refine wechatgame firstscreen as splashScreen
* warp some function in draw
2023-05-11 10:12:31 +08:00
qiuguohua e706ca3c2f 1、Fix the audio switch to the background can not play the problem (#14997)
2、Fix the white screen displayed at startup
3、Fix the webview crashing when switching scenes
2023-05-08 17:43:13 +08:00
江战 b17f69f788 Android: update gradle wrapper & cmake (#14918)
* update gradle wrapper & cmake

* Update templates/android/build/build.gradle
2023-05-06 09:15:02 +08:00
江战 60ad30ae58 Update build.gradle (#14954) 2023-05-05 09:42:44 +08:00
fqamic 77ce6e8f2c feat: sync android template for xr platform (#14910) 2023-04-25 09:38:49 +08:00
changhua a59b95cdc5 change ios template splash (#14890) 2023-04-24 17:40:11 +08:00