Commit Graph

220 Commits

Author SHA1 Message Date
bofeng-song
3a3e71632d disable sensor by default, game developer can enable it by set 'acce… (#10770)
* disable sensor by default,  game developer can enable it by set 'accelerometerEnable' to true
2022-04-15 09:49:56 +08:00
江战
909c9df9e9 prevent class CocosWebSocket from obfuscation in release mode (#10511) 2022-03-26 11:00:42 +08:00
Zeqiang Li
e64301ad34 3.5.0 swappy (#10327)
* gles2/3 swappy
* vk swappy
* manually fallback in GL

Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com.com>
2022-03-24 15:37:38 +08:00
kenshin
93f37f2b82 Optimize android download tasks. (#10274) 2022-03-21 19:53:11 +08:00
江战
cb0618f0d4 3.5 Android: okhttp impl websockets (#10384) 2022-03-21 09:46:49 +08:00
bofeng-song
65e89c2094 fix translucent problem due to SurfaceView‘s limit (#10228) 2022-03-02 17:47:27 +08:00
bofeng-song
141128f148 refine context2d, reduce call from native to js (#10211)
* reduce c++ callback to js
2022-03-02 09:56:00 +08:00
timlyeee
f175150b6c Cherry pick from v3.4.2 (#10182)
* supply a default context when surface destroyed (#4222)

* Fix loop audio would stop for ios system (#4254)

* IOS system has an uncertain state between foreground and background, and our condition sometimes miss the point to load buffers.
* Queue for 3 buffers might be too short to live, use 4 or even more instead.

* Use same mtx for write (#4220)
2022-02-25 13:52:31 +08:00
timlyeee
83ecd19721 Divide foreground tasks and all-time tasks (#4206)
* Add JsbBridgeWrapper for ohos

* Divide Foreground tasks and all-time tasks

* implement a taskQ class

* Add ohos support
2022-01-24 10:25:05 +08:00
江战
8154648490 3.4.1 Android: Java flush game thread tasks (#4193)
* fix run on game thread

* save

* just flush java tasks, do not run gameTick

* reduce timeout to 50
2022-01-19 12:40:20 +08:00
timlyeee
b54225e433 Rename JsbBridgeWrapper API (#4130) 2022-01-06 16:58:37 +08:00
timlyeee
b5c40837c8 add JsbBridgeWrapper(#4125) 2022-01-04 13:38:23 +08:00
timlyeee
0a74bcf92d Fix Editbox bug (#4091)
[ Bug ] For android API 18, edit-box's text would be occluded.
2021-12-08 17:39:35 +08:00
江战
adbcee9d4c keep screen on (#4007) 2021-10-27 09:51:48 +08:00
timlyeee
85c52544a5 message channel between Native and JS (#3900)
* Invoke Native Function in JS
* Invoke JS function in Native
Co-authored-by: LX <codingboeuf@jizamaoxuewangdeMacBook-Air.local>
2021-09-29 14:16:30 +08:00
minggo
f3049c0acb merge v3.3.1 to v3.4.0 2021-09-09 11:00:18 +08:00
timlyeee
0a742ad421 Fix issue for android bug (#3852)
* https://forum.cocos.org/t/topic/119306/142
2021-08-26 16:48:46 +08:00
minggo
a61b2931dc merge v3.3.0 and fix conflict 2021-08-04 16:43:35 +08:00
mmyduckx
1fda312b80 fix android hide vitural Button (#3743) 2021-07-20 09:31:26 +08:00
Lu Ching Wen
b11faaf2a2 Fix android App crash issue (#3644) 2021-06-23 17:16:03 +08:00
江战
b8ae264e5a imporve _fileImageData performance (#3547) 2021-05-25 15:09:26 +08:00
江战
a652715f5a Harmony OS support - dont merge (#3528) 2021-05-21 10:43:22 +08:00
OnlyKoei
00798b9b38 Update CocosKeyCodeHandler.java (#3503)
fix keyup event call
2021-05-07 16:50:41 +08:00
minggo
b25b2121d6 merge v3.1 2021-04-20 19:15:18 +08:00
OnlyKoei
abc11ba7b3 Update CocosActivity.java (#3326)
After the restoration of virtual Home button click to hide App, App Home key to re-open not hidden.
2021-03-19 16:06:28 +08:00
Knox
0981eb7cbd improve video player seekTo in android (#3291)
* improve video player seekTo in android
2021-03-01 09:41:59 +08:00
kenshin
fd94f6c1fd Handle touch event in SurfaceView, fix inconsistent touch area between Activity and View. (#3252) 2021-01-27 15:22:39 +08:00
Knox
b28f95602e fix: pause video then switch to the background and return, there will be playback error (#3227) 2021-01-19 09:54:06 +08:00
Knox
8a95b8c2d6 Fix the dialog box that can't play this video when stoped video (#3209) 2021-01-12 15:48:47 +08:00
Knox
c8bc5e9f21 Fix the dialog box that can't play this video when playing video (#3186) 2021-01-09 18:26:25 +08:00
minggo
82061f4b01 modify for sdk service (#3175) 2020-12-31 15:50:42 +08:00
Knox
d05857f68e fix video player resume invalid (#3138) 2020-12-22 17:31:17 +08:00
minggo
b78d759b6a get video properties in gl thread to avoid dead lock (#3137)
ui thread may wait for gl thread to enter pause state, if the same time gl thread get video properties in ui thread and wait for it, then dead lock happens
2020-12-22 14:34:53 +08:00
吴智明
7d55ad729a 3d gfx add orientation change event (#3135) 2020-12-22 10:59:18 +08:00
minggo
e9463d9be2 Fix todo (#3097)
* remove close window function

* remove unneeded codes

* fix todo
2020-12-07 11:07:37 +08:00
吴智明
2d1a52e597 add immisive mode (#3092)
* hide navigation bar and use immersive mode as default

* remove empty line
2020-12-03 13:37:57 +08:00
Knox
edc85f1f4c add getSafeArea for android and iOS (#3067) 2020-11-25 16:58:46 +08:00
cary
835b0bbb07 Fix the text baseline on native platform. (#3043) 2020-11-19 13:47:12 +08:00
吴智明
4dc6a9f67c change android package name (#3006) 2020-11-11 10:55:10 +08:00
minggo
3fc5d1d76d 3d gfx use java activity (#2990)
* use java activity

* simplify codes

* initialize app

* first version of touch handler

* fix touch event's bug

* add keycode event support for android

* add sensor adapt

* add copyright header

* add webview support

* support video player

* add missing property

* add editor box support

* handle crash if come from background on Android

* update external version

Co-authored-by: wuzhiming <wuzhiming.chukong@gmail.com>
2020-11-07 17:38:33 +08:00
Knox
8299383ae8 add web view (#2863)
* add web view

* refine code
2020-09-30 17:58:38 +08:00
Knox
24bb96f7ef add video player (#2860) 2020-09-30 13:58:07 +08:00
江战
21b16d6246 Rename package okhttp3 to org.cocos2dx.okhttp3 #1961 (#2843) 2020-09-28 10:39:36 +08:00
江战
fab25711ec bug: fix crash when launch from icon after launch from installer #2169 (#2840) 2020-09-28 09:50:58 +08:00
zhefeng.zhang
fda166d954 sync #1919 (#2711) 2020-08-24 11:54:15 +08:00
江战
7423ccef65 Impl runOnGameThread on Android (#2577) 2020-06-24 15:31:25 +08:00
minggo
7997a44f18 Remove webview (#2543) 2020-06-10 16:04:07 +08:00
minggo
96cbe1e971 Android adapt (#2410)
* simplify get obb file path

* not get package name throung jni

* not get sdk version from android

* remove unneeded codes

* remove convertEncoding

* remove unneeded codes'

* remove unneeded codes

* simpify codes

* simplify codes

* remove unneeded codes
2020-04-27 17:14:06 +08:00
minggo
2d3010f546 Editbox (#2294)
* mac support editbox

* fix compiling/runtime issue for iOS/Android

* prevent handling touch event if it is prevented

* make editbox work

* fix effect of editbox on android
2020-03-19 13:46:31 +08:00
minggo
7ac05e123f remove unneed codes (#2180) 2020-02-25 16:04:18 +08:00