Commit Graph

238 Commits

Author SHA1 Message Date
bofeng-song 563a72a9dc only enable sensor need to register sensor listener (#12283) 2022-08-01 09:44:50 +08:00
timlyeee 50ffa3b39a V3.6.0 get language with LocaleList on Android7+ (#12073)
* get language by using system language settings
2022-07-20 11:18:09 +08:00
yangchao 2507bfe184 Fix video player bug (#11933) 2022-07-12 18:16:18 +08:00
timlyeee b43de1af07 V3.6.0 exit (#11856) 2022-07-07 14:07:47 +08:00
mmyduckx 0077fee553 fix android onProgress may over 100% when trigger breakpoint download (#11638) 2022-06-23 14:32:29 +08:00
timlyeee 98786920d0 Improve the experience of EditBox on iOS and fix some EditBox bugs
1. Improve the experience by using InputboxAccessoryView on TextView and TextField.
2. Fix bug when trying to show an editbox with no show info on Android
3. Fix bug when touch outside of the inputbox but cannot hide it.
2022-06-17 14:00:52 +08:00
江战 0f0b722318 follow MDN standard, fix Origin header format (#11509) 2022-06-16 14:00:55 +08:00
江战 1ee47a8142 fix url & add origin (#11505) 2022-06-15 09:57:28 +08:00
kenshin 6af32ff046 fix ttf font render on android (#11298)
use ttf font with splice string "-Bold" can not found in sTypefaceCache.
2022-06-01 15:58:42 +08:00
mmyduckx 22cc2e4878 add SharedPreferences related stroage implement (#11097) 2022-05-17 11:35:48 +08:00
bofeng-song 4e6a2f1be3 Android: support exit procedure (#10937) 2022-05-11 18:13:53 +08:00
bofeng-song 5bd5b59de4 reset gradle & jdk11 dependency (#11015)
* reset gradle to the original version
set compile tools version to 28
reset jdk11 dependency
2022-05-11 13:41:06 +08:00
minggo 84c27e7f71 Merge branch 'v3.5.0' into v3.6.0_merge_v3.5 2022-04-24 13:41:27 +08:00
bofeng-song ef7d80f8ae integrate game-activity (#10794) 2022-04-22 13:48:43 +08:00
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
minggo a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +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
minggo 73c303f556 Merge branch 'v3.5.0' into merge_v3.5.0 2022-03-08 14:53:00 +08:00
bofeng-song 4b92dfd675 support audiofocuschange for android (#10246)
* support audiofocuschange for android
2022-03-08 10:20:46 +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
江战 362f42b70c update okhttp to 3.12.14 (#10169) 2022-02-24 18:22:20 +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