Commit Graph

2593 Commits

Author SHA1 Message Date
minggo 15b34c81dc dispatch touch event on iOS (#1101) 2018-02-09 09:26:44 +08:00
minggo 802e48080e New renderer (#1097)
* build work on mac

* build ok on iOS

* fix compiling error on android

* fix android link error
2018-02-08 10:40:29 +08:00
feijing566 70e7f38622 add some dragonbones function jsbinding (#1086)
* add dragonbones_Armature_getSlots jsbinding

* update

* add js_cocos2dx_dragonbones_Slot_get_name and js_cocos2dx_dragonbones_BaseFactory_replaceSlotDisplay jsbing
2018-02-01 17:03:43 +08:00
Jare Guo d9bd3d763c update license (#1089)
* updating license

* update license
2018-02-01 15:20:01 +08:00
CocosRobot 15efc6945c [AUTO][ci skip]: updating cocos2dx_files.json (#1084) 2018-01-31 10:14:55 +08:00
James Chen 69798998db Adds cc.sys.getBatteryLevel & cc.sys.getNetworkType APIs (#1071)
* Adds cc.Device.getBatteryLevel interface.

* Adds CCReachability.h/.cpp

* Adds CCReachability.h/.cpp

* Reachability supports macOS either.

* Adds cc.Device.getNetworkStatus interface.

* Removed debug log.

* cc.Device.NetworkStatus -> cc.Device.NetworkType

* API to sys namespace

* Update CCDevice-win32.cpp
2018-01-29 17:37:15 +08:00
CocosRobot 7a925d02b7 [ci skip][AUTO]: updating jsbinding automatically (#1068) 2018-01-16 14:02:35 +08:00
Knox ab0a3d33d7 fix VideoPlayer code error (#1069) 2018-01-16 14:02:17 +08:00
Knox 7c81e99b67 add Volume and Mute to CCVideoPlayer for fireball/issues/6811 (#1056)
* add Volume and Mute to CCVideoPlayer for fireball/issues/6811

* refine code
2018-01-16 10:49:00 +08:00
Jare Guo 77d142f7d8 Merge pull request #1061 from cocos-creator/v1.8
sync branch
2018-01-09 22:11:12 +08:00
Jare Guo 861f1b4e98 Merge pull request #1060 from cocos-creator/v1.8-release
sync branch
2018-01-09 22:09:34 +08:00
James Chen 3fa48d4a11 Adds missing se::autoHandleScope. (#1057) 2018-01-08 15:31:20 +08:00
James Chen c08c56c9d4 Fixes memory issue in TMXLayer (#1054) 2018-01-04 11:20:24 +08:00
James Chen 560cdff5b6 Binds tmxlayer.getTiles. (#1053) 2018-01-04 11:03:54 +08:00
CocosRobot 9aa2b05e85 [ci skip][AUTO]: updating jsbinding automatically (#1052) 2018-01-03 16:12:52 +08:00
Jare Guo a548db62d1 refactor dragonbones asset managment (#1048) 2018-01-03 14:38:16 +08:00
James Chen a942f6d83d Merge pull request #1051 from cocos-creator/v1.7-release
Merge v1.7-release
2018-01-02 14:01:07 +08:00
James Chen 127d926847 [iOS] Updates cocosanalytics lib to 1.0.4 (#1050) 2018-01-02 13:58:17 +08:00
James Chen cc40611944 fixed #1041: Potential crash in invokeJSTouchOneByOneCallback. (#1043)
And fixed potential invalid se::Object after invoking cc.director.getScheduler/getActionManager/getEventDispatcher, cc.SpriteFrame/Sprite.getTexture.
Added hook functions in EventDispatcher, TextureCache to prevent using dangerous se::Object.
Stop propagation for TouchOneByOne event should only affect current Touch point.
Fixed updateListener may not be invoked.
2018-01-02 13:56:26 +08:00
James Chen fcc3a34602 [iOS] Updates cocosanalytics lib to 1.0.4 (#1049) 2018-01-02 13:49:22 +08:00
James Chen e8d11d07f7 Updates bindings-generator, adds missing se ns (#1047) 2017-12-29 11:19:43 +08:00
Jare Guo 07b1de9d2e Merge pull request #1039 from cocos-creator/v1.7
sync branch
2017-12-21 15:48:53 +08:00
Jare Guo 449c67fafa Merge pull request #1038 from cocos-creator/v1.7-release
sync branch
2017-12-21 15:46:44 +08:00
James Chen 3ec85199d5 Corrects the wrong logic of using delete to remove memory allocated by malloc. (#1036) 2017-12-19 16:07:16 +08:00
Jare Guo c4d6e83254 allow TiledMap to read preloaded textures for creator (#1034) 2017-12-19 11:28:12 +08:00
Jare Guo 460ec62905 Merge pull request #1030 from cocos-creator/v1.7
sync branch
2017-12-13 14:08:20 +08:00
Jare Guo 9bd74a93af Merge pull request #1029 from cocos-creator/v1.7-release
sync branch
2017-12-13 14:06:41 +08:00
James Chen 46ad6b1f38 Fixes ResizableBufferAdapter<Data>::resize doesn't consider the situation of new size which is lower than old size. (#1028) 2017-12-12 16:47:42 +08:00
James Chen 0cfbfd08f7 Kill process if Cocos2dxActivity.onDestroy is invoked to resolve crash if app goes to background for a long time and Activity is recycled by system. (#1027) 2017-12-12 11:10:51 +08:00
James Chen 8bb98375f7 Fixes missing return value of onWavClose function. (#1025) 2017-12-08 21:47:23 +08:00
James Chen 44813f4166 Sync PR: cocos2d-x #18299: JNI ERROR (app bug): local reference table overflow (max=512) (#1024)
* Sync PR:  cocos2d-x #18299: JNI ERROR (app bug): local reference table overflow (max=512)

* Fixes potential memory leak if can't find class by jsb.reflection.callStaticMethod.
2017-12-08 18:25:04 +08:00
James Chen 5c763a6745 Merge pull request #1022 from dumganhar/v1.7
Merge v1.7-release
2017-12-07 17:40:29 +08:00
James Chen 4708131018 Merge pull request #1021 from dumganhar/v1.7-release
Merge v1.7
2017-12-07 17:36:24 +08:00
James Chen df3a37655d Merge branch 'v1.7' into v1.7-release 2017-12-07 17:33:28 +08:00
James Chen 0a0a177ee7 Fixes xhr.ontimeout isn't invoked and xhr.onerror is called instead while timeout is triggered. (#1020) 2017-12-07 17:20:44 +08:00
James Chen d2dbc9a7ef Workaround for socketio.emit without payload argument (#1019) 2017-12-07 17:10:18 +08:00
James Chen 4387a16096 Fixes xhr.ontimeout isn't invoked and xhr.onerror is called instead while timeout is triggered. (#1018) 2017-12-07 14:49:34 +08:00
James Chen 7fa89539d1 Updates Cocos Analytics library to 1.0.3, resolve Reachability.o conflict with other 3rd libraries. (#1017) 2017-12-07 14:08:12 +08:00
James Chen 8dcdf6e276 Merge pull request #1016 from dumganhar/v1.7
Merge v1.7-release
2017-12-07 11:35:11 +08:00
pandamicro e9913fbf5a Delete old version files during hot update (#1006) 2017-11-30 11:08:25 +08:00
James Chen 412f71a89b [android] Fixes wrong timeout value is used. Should use timeout parameter per requrest instead of per client instance. (#1014) 2017-11-28 13:42:01 +08:00
James Chen 901f4fa50c Auto hide home indicator for iPhoneX. (#1013) 2017-11-28 13:36:14 +08:00
James Chen 2e3883f097 [Android] Fixed compilation error while using APP_PLATFORM >= 22. (#1012)
* [Android] Fixed compilation error while using APP_PLATFORM >= 22.

* Don't use deprecated createUint8TypedArray.
2017-11-23 15:19:37 +08:00
James Chen cdad6b5868 Some Android Simulators don't support SSE instruction, so disable it for x86 arch. (#1011) 2017-11-23 15:13:34 +08:00
James Chen f5f94ac857 [iOS] jsb.reflection.callStaticMethod supports to call objective-c method with NSNumber* and supports to pass undefined/null from JS. (#1010) 2017-11-23 14:26:03 +08:00
James Chen 7c4eeecdde Removes the unneeded support for passing 'key' arguments to cc.Scheduer.schedule/unschedule. (#1009)
* Removes the unneeded support for passing 'key' arguments to cc.Scheduler.schedule/unschedule.

* cc.REPEAT_FOREVER isn't defined in lite and it isn't needed to hack cc.Scheduler.schedule in script either.
2017-11-23 13:47:15 +08:00
James Chen c22673d440 Provides an interface for getting SafeArea (#1008)
* Provides an interface for getting SafeArea

* @available(iOS 11.0, *) isn't supported in Xcode8. So we use the old way.
2017-11-23 13:39:35 +08:00
James Chen 6cf513a377 Adds missing binding code for Scheduler.isTargetPaused. (#1007) 2017-11-22 16:15:30 +08:00
Jare Guo 06398580a6 Merge pull request #1005 from cocos-creator/v1.7
start working on 1.7.1
2017-11-21 20:53:41 +08:00
Jare Guo f9c9ef8883 Merge pull request #1004 from cocos-creator/v1.7
sync branch
2017-11-21 20:43:06 +08:00