Commit Graph

320 Commits

Author SHA1 Message Date
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
minggo 826babfa64 Format code (#3217) 2021-01-13 14:49:32 +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
minggo a728537098 add license (#3165) 2020-12-29 11:25:30 +08:00
PP 8e561c9cfc remove Device::Rotation (#3140) 2020-12-25 17:27:15 +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
minggo 3ea4c5c9a5 fix crash if return from background (#3082) 2020-11-30 15:24:41 +08:00
Knox edc85f1f4c add getSafeArea for android and iOS (#3067) 2020-11-25 16:58:46 +08:00
minggo 8a1a318893 fix iOS resolution issue (#3066) 2020-11-24 19:03:32 +08:00
cary 835b0bbb07 Fix the text baseline on native platform. (#3043) 2020-11-19 13:47:12 +08:00
minggo 4a5df08f19 fix android command order after coming from background (#3030) 2020-11-16 14:21:55 +08:00
吴智明 4dc6a9f67c change android package name (#3006) 2020-11-11 10:55:10 +08:00
minggo 74e8fb9084 cache properties of CanvasRenderingContext2D (#3007)
* cache properties of CanvasRenderingContext2D

* update data after setting callback

* do not set width/height if the value is not changed
2020-11-11 09:48:21 +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
吴智明 d5d772556c 3d gfx upgrade gradle (#2928)
* upgrade gradle version and instant app version

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>

* upgrade gradle config

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>

* fix project path

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
2020-10-20 15:09:05 +08:00
minggo e605f34bd6 dispatch memory warning event to JS (#2924) 2020-10-20 09:48:46 +08:00
Knox 8299383ae8 add web view (#2863)
* add web view

* refine code
2020-09-30 17:58:38 +08:00
江战 36ac7ab368 [3d-gfx] sync #2231 neg acc.z (#2862)
* use negative value of acc.z #2231

* fix typo
2020-09-30 17:31:54 +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
江战 a0d5b38eb8 Fix crash below android4.4 when the class cannot be found … (#2839) 2020-09-28 10:34:13 +08:00
江战 fab25711ec bug: fix crash when launch from icon after launch from installer #2169 (#2840) 2020-09-28 09:50:58 +08:00
minggo 9d9c79012b change file path (#2733) 2020-09-10 09:51:24 +08:00
minggo b08407c501 remove CC/cc prefix for file names (#2728) 2020-08-28 15:23:29 +08:00
zhefeng.zhang fda166d954 sync #1919 (#2711) 2020-08-24 11:54:15 +08:00
minggo 6a17148d40 use .cpp/.h for source file suffix (#2654) 2020-07-22 15:00:28 +08:00
minggo 581aca5da0 Refactor fileutils (#2649) 2020-07-17 15:45:15 +08:00
江战 7423ccef65 Impl runOnGameThread on Android (#2577) 2020-06-24 15:31:25 +08:00
minggo 7efee066fd Remove duplicate (#2597) 2020-06-19 11:07:21 +08:00
minggo d381a16142 change namespace from cocos2d to cc (#2572) 2020-06-16 14:34:46 +08:00
minggo ac08833b56 remove CCPlatformDefine.h (#2565) 2020-06-15 16:00:27 +08:00
江战 4c2b647bba remove CCPlatformConfig.h / 3d-gfx (#2555) 2020-06-12 11:17:37 +08:00
minggo 7997a44f18 Remove webview (#2543) 2020-06-10 16:04:07 +08:00
江战 082f432d2a remove unused code / 3dgfx (#2487)
* remove \*.mk

* support Makefile

* update default template

* fix path

* fix field type

* link resource instead of copy

* update external

* fix travis

* fix ssize_t macro

* fix macro 2
2020-05-28 11:24:14 +08:00
江战 f0d2b6d268 update (#2459) 2020-05-19 14:21:14 +08:00
江战 1748a533a7 init pthread key p_key (#2460) 2020-05-19 14:02:12 +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 2082c30ea4 fix crash if enter background on Android (#2401)
* fix crash if enter background on Android

* break if recreate window error
2020-04-24 16:56:35 +08:00
Arnold 79fc8353d1 3dgfx add CI & cmake (#2350)
* use-cmake

* revert: enable gles3 for android

* compile with cmake only
2020-04-14 13:58:45 +08:00
minggo da1c03d8d9 implement fps limitation (#2333) 2020-03-26 18:04:32 +08:00
minggo 9be1356d67 System adapter (#2318)
* move View to engine on mac

* move View to engine on iOS

* add CC prefix for file names

* handle input events in engine on Android
2020-03-23 16:22:54 +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
coulsonwang bef04c6fc3 fix device pixel ratio (#2269)
* set device pixel ratio

* fix

* fix devicePixelRatio

* update review

* fix dpr

* remove unneeded code

* remove unneeed code

* fix

* remove getScrenScale
2020-03-17 11:29:48 +08:00