Commit Graph

496 Commits

Author SHA1 Message Date
qiuguohua 145119b322 Remove treating AMOTION_EVENT_TOOL_TYPE_STYLUS events as mouse events (#18113)
* https://github.com/cocos/cocos-engine/issues/16533, 删除AMOTION_EVENT_TOOL_TYPE_STYLUS, 属于手写笔,触控笔枚举

* Remove treating AMOTION_EVENT_TOOL_TYPE_STYLUS events as mouse events

---------

Co-authored-by: tangkai <1944876319@qq.com>
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-01-03 09:30:24 +08:00
minggo 7251fd3efc merge v3.8.5 2024-12-23 10:34:45 +08:00
qiuguohua a670a91661 Optimizing google play implementation (#18047)
* Optimizing google play implementation

* Initializing member variables

* Remove redundant code

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-12-17 15:04:02 +08:00
bofeng-song d3b121fe75 Fix Android ADPF API compatibility issues. (#18044) 2024-12-17 14:56:58 +08:00
qiuguohua 86aed391c1 Fix issues with adpf (#18043)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-12-17 10:42:09 +08:00
bofeng-song 815c59589c Fix the crash issue on the Android platform caused by an invalid context. (#18036)
* Fix the crash issue on the Android platform caused by an invalid context.
2024-12-17 10:40:51 +08:00
bofeng-song 20581f1492 Fix potential ANR issues caused by unsafe calls to the ALooper_pollAll interface. (#18025)
* Fix potential ANR issues caused by unsafe calls to the ALooper_pollAll interface.
2024-12-13 09:24:18 +08:00
qiuguohua c2882db601 The google play billing interface is consistent with google's original interface (#18010)
The google play billing interface is consistent with google's original interface

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
Co-authored-by: James Chen <dumganhar@gmail.com>
2024-12-12 18:23:38 +08:00
qiuguohua deba073213 Integrate the Google Play Billing Library into engine (#17918) 2024-11-29 11:18:48 +08:00
bofeng-song 8f83193aa1 Fix the JNI error 'global reference table overflow' caused by receiving a large number of WebSocket messages in the background (#17609) 2024-09-06 14:26:32 +08:00
James Chen 55c81c3198 fixed #17594: [android] fix crash and memory leaks if launching game multiple times on Android platform with PhysX module enabled. (#17602) 2024-09-04 18:26:15 +08:00
bofeng-song 5da2f9b63a fix orientation-change can not work normally (#16774)
* fix orientation-change can not work normally
2024-03-22 09:27:54 +08:00
Hakim Hauston 716b935944 [ADPF] PerformanceHintAPI - include core threads + use NDK API (#16610)
* [ADPF] PerformanceHintAPI - include core threads + use NDK API
2023-12-28 09:13:11 +08:00
江战 59ff2099c9 fix duration (#16489) 2023-11-10 15:44:11 +08:00
bofeng-song 7d3ab9e6a6 Fix the problem that the editbox shifts too far away when the keyboard pops up (#16461)
* Fix the problem that the editbox shifts too far away when the keyboard pops up
2023-11-08 10:06:02 +08:00
江战 7e459d2ab9 ADPF bindings (#16445) 2023-11-02 11:26:36 +08:00
James Chen 093bc8724e Update v8 to 11.6.189.22 (#16364)
* Update se code to adapt v8 11.4

* Fix setter

* VisitHandlesWithClassIds was added again.

* Remove log in evalString

* Revert in ScriptEngine.cpp

* Update external-config.json

* Remove unused ndkPath in libcocos2dx/build.gradle

* Update external config to v3.8.2-11
2023-10-10 11:06:02 +08:00
James Chen e9b2a15f18 Fix XR header include and don't build XRInterface.cpp if XR is disabled. (#16324) 2023-09-25 14:09:28 +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
oahc09 56417f35b0 improve:adjust xr begin/end render frame call's position (#16021)
(Calculate the correct delta time)
2023-08-18 15:11:35 +08:00
mmyduckx 8c1a005d21 add http patch request process (#15898) 2023-08-09 11:27:39 +08:00
bofeng-song acab20f348 fix multi touch cause crash on Android platform (#15796) 2023-07-24 10:21:39 +08:00
bofeng-song 95c93e51c1 refine: Optimize the display of the editing box on the Android platform. (#15730)
* refine: Optimize the display of the editing box on the Android platform.
2023-07-17 16:11:13 +08:00
江战 5f71d04aac Filp the y-axis value for stick (#15570) 2023-06-28 18:21:29 +08:00
ChiaNing bf7874a9f4 fix android label shadow Pollution (#15470) 2023-06-18 19:31:26 +08:00
江战 8c41446e96 Add Android GPG keyboard & Mouse support (#15385)
* Add Android GPG keyboard & mouse support
2023-06-08 21:42:45 +08:00
bofeng-song a8eb030f90 fix install failed with android studio (#15251) 2023-06-01 13:40:11 +08:00
mmyduckx e2f86928f6 fix android videoplayer player again cannot work (#15118) 2023-05-24 10:29:32 +08:00
minggo fbafcaace4 fix compiling error 2023-04-24 15:32:23 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
bofeng-song 73412caf59 Fix the issue of button response offset caused by listening to incorrect objects (#14864) 2023-04-20 17:29:12 +08:00
bofeng-song 6822177313 Android platform, the edit box does not immediately display the contents of the soft keyboard (#14687) 2023-03-30 10:29:49 +08:00
bofeng-song 3a9ea052f3 Fix the crash problem of android platform caused by windowId being 0 (#14670) 2023-03-27 16:11:05 +08:00
oahc09 7ff205b51f improve:xr common module update (#14664)
1.optimize CocosXRApi compatibility
2.remove xr permission helper's dependency on CocosHelper.getActivity()
2023-03-27 16:09:57 +08:00
江战 cdfd194c4c Add HPE Feature Detetion and JNI Method Refactoring (#14633) 2023-03-26 16:26:45 +08:00
minggo d0159fd851 Merge pull request #14651 from minggo/develop_merge_v3.7.3
Develop merge v3.7.3
2023-03-24 14:08:24 +08:00
江战 181bbc6569 Android: Game Activity Supports Controller Integration (#14625)
* Android Game activity support Controller
2023-03-24 13:44:09 +08:00
minggo bcc581dfd7 Merge branch 'v3.7.3' into develop_merge_v3.7.3 2023-03-24 10:57:28 +08:00
James Chen 756dbb736d Fix GlobalObject.runOnUiThread, keep the same logic as Activity.runOnUiThread. (#14616)
If we didn't fix this, ANR will be triggered in WebView test. But I think CocosWebView implementation is wrong.
Currently, CocosWebView.ShouldStartLoadingWorker.run is invoked in UI thread. latch.await is also called in UI thread, which is really dangerous and easily causes infinite waiting.
2023-03-21 16:26:16 +08:00
James Chen 937eb10402 [android] Remove dependence of Activity, prepare for surface-less rendering (#14612)
* Use `context` instead of `activity` as possible.

* Remove unused JniNativeGlue.h include.

* Remove unused import.

* Update JniHelper.h/.cpp, JniHelper::sActivity -> JniHelper::sContext.

* Fix log output name in CocosHelper.java

* Rename the second parameter JniHelper::init from `activity` to `context`.

* Update todo in JniHelper::getActivity()
2023-03-21 11:54:23 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
bofeng-song 57eb6c6164 Repair the problem that setWritablePath does not take effect after setting (#14490)
* Repair the problem that setWritablePath does not take effect after setting
2023-03-07 13:51:18 +08:00
oahc09 85a400998a feat:xr support adb command controller/activity lifecycle callback (#14334)
* feat:support adb command controller/activity lifecycle callback to native xr

* improve:replace getInterface<IXRInterface>() with CC_GET_XR_INTERFACE()
2023-02-24 16:37:23 +08:00
James Chen 60efd41c26 Merge pull request #14330 from cocos/v3.7.2
Merges v3.7.2 to develop
2023-02-22 09:40:48 +08:00
oahc09 74247a39ad improve:xr video player (#14302)
*updateTexture add timeout refresh logic to avoid frame block
*seekto use SEEK_CLOS mode
2023-02-21 09:48:40 +08:00
oahc09 fefb9e5bbe feat:support xr xrapi/webview/permission feature (#14312) 2023-02-21 09:46:46 +08:00
qiuguohua ee86fc40bd Native platform modifies exit process (#14141) 2023-02-15 17:11:28 +08:00
Zhou Zhenglong 2b54f20d0a Merge branch 'v3.7.1' into v3.7.2-merge 2023-02-13 00:47:24 +08:00
oahc09 d4eb7ea881 fix:xr video player bug (#14121)
* fix:xr video player compatibility on some devices
shader compile error

* fix:release video player framebuffer
2023-02-02 13:36:32 +08:00
bofeng-song 92c0220258 fix shadow not work while radiu set to 0 (#14047)
* fix shadow not work while radiu set to 0
2023-01-20 08:11:17 +08:00