Commit Graph

370 Commits

Author SHA1 Message Date
James Chen e83be4b12f fix missing getFileOperationDelegate for v8. 2018-03-05 17:42:50 +08:00
James Chen 88123dbb7b Updates opengl binding and module fix. 2018-03-05 11:00:02 +08:00
James Chen d6a8e1ca34 Merge branch 'new-renderer' of git://github.com/cocos-creator/cocos2d-x-lite into new-renderer
# Conflicts:
#	cocos/scripting/js-bindings/event/EventDispatcher.cpp
#	cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj
2018-03-02 11:07:11 +08:00
James Chen dc20cb8164 Adds opengl utils. 2018-03-02 11:04:21 +08:00
James Chen 235ad32f5e Updates opengl bindings 2018-03-02 11:02:13 +08:00
James Chen 154bbd29ce Removes code for debugging. 2018-03-01 13:49:47 +08:00
James Chen b9f7b812fe seval_to_EffectProperty and seval_to_std_vector_TechniqueParameter supports nullptr conversion. 2018-03-01 13:47:44 +08:00
James Chen 983e87e9a6 module cache works. 2018-03-01 10:31:27 +08:00
minggo fd99785ef4 simplify xcode project (#1136) 2018-02-28 17:56:38 +08:00
James Chen 3f88e14de9 require supports module.exports. 2018-02-27 17:03:28 +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
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 560cdff5b6 Binds tmxlayer.getTiles. (#1053) 2018-01-04 11:03:54 +08:00
Jare Guo a548db62d1 refactor dragonbones asset managment (#1048) 2018-01-03 14:38:16 +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 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 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 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 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 6cf513a377 Adds missing binding code for Scheduler.isTargetPaused. (#1007) 2017-11-22 16:15:30 +08:00
yinkaile 3fb0cc276d support zip compress js files (#1001) 2017-11-21 16:08:17 +08:00
James Chen 0a10b3b7f8 Fixes ccvalue_to_seval convertion function didn't consider some kinds of types. (#996) 2017-11-17 17:30:25 +08:00
James Chen 38c666acc2 Returns true if passing null or undefined value to seval_to_native_ptr and sets the out value to nullptr. (#994) 2017-11-17 15:07:44 +08:00
James Chen 5050fb570b Any kinds of se::Value should be able to be converted to std::string. 2017-11-17 13:52:43 +08:00
James Chen bb85aeba13 Don't be so strict of checking whether it's in garbage collecting in releaseScriptObject. (#988) 2017-11-15 16:43:03 +08:00
James Chen 4a61e1423f Re-binds OpenGL interfaces. (#976)
* Adds opengl bindings code.

* Register OPENGL module.

* Updates Android.mk

* Updates win32 project configuration.

* Supports boolean -> integer conversion.

* glXXXXv count fix.

* GLNode needs to inherit from Node.

* Updates bindings.

* size fix in JSB_glGetUniformfv.

* JSB_glGetSupportedExtensions fix.
2017-11-14 18:05:14 +08:00
James Chen 3617745392 Fixes xhr.send(undefined) or xhr.send(null) will not send any request to server. (#977) 2017-11-10 16:17:36 +08:00
James Chen bb21caf9f9 CCLOG -> CCLOGINFO for spTrackEntry relevant logs. (#978)
fixed https://github.com/cocos-creator/fireball/issues/6611
2017-11-10 16:11:12 +08:00
James Chen f2e03aa0b2 Adds missing files. 2017-11-03 15:26:26 +08:00
James Chen 036a0a21da Moves retain/release code from se::ScriptEngine to ScriptingCore. 2017-11-02 11:44:48 +08:00
James Chen a0a77de488 Bug fix for jsb.callStaticMethod for android. Don't return JavaScriptJavaBrider::convertReturnValue for binding method. 2017-11-02 11:40:47 +08:00
James Chen 6a9500df10 LOGD -> SE_LOGD, LOGE -> SE_LOGE to avoid conflict with user code. 2017-11-02 11:35:53 +08:00
James Chen 7d0979da3c Unify jsc parsing flow for SpiderMonkey. 2017-11-02 11:12:39 +08:00
James Chen ccacdafb23 Fixes assertion while websocket instance is garbage collected. 2017-10-21 19:47:15 +08:00
James Chen 8ae6d54df3 Spine conversion should use pointer instead of reference since it probably returns nullptr. 2017-10-20 10:01:04 +08:00
James Chen 0ef60bfeb7 Updates cocos analytics lib for iOS. 2017-10-19 18:37:55 +08:00
James Chen e42ed18678 Merge branch 'develop' of git://github.com/cocos-creator/cocos2d-x-lite into jsb2.0
# Conflicts:
#	cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj
2017-10-19 17:49:57 +08:00
James Chen 1962051dc9 Refactors JavaScriptObjcBridge, support more raw type like bool, int, long, float, double. 2017-10-19 16:17:51 +08:00
Wang Nan 51c8d2ebd9 Merge pull request #909 from dumganhar/jsb2.0
Supports cocos analytics for Android. iOS support is on the road.
2017-10-18 21:00:39 -05:00
James Chen 1890949d86 [android] JavascriptJavaBridge supports signature of Long type.
And uses enum class for ValueType.
2017-10-18 16:46:56 +08:00
yinkaile 578f44248e add USE_NET_WORK macro 2017-10-16 17:08:09 +08:00
yinkaile 5629e26e58 Merge branch 'develop' of github.com:cocos-creator/cocos2d-x-lite into native-modules
# Conflicts:
#	cocos/scripting/js-bindings/manual/jsb_creator_manual.cpp
2017-10-16 15:53:44 +08:00
James Chen 96709d7609 Fixes wrong usage of assert macro in jsb_creator_manual.cpp. 2017-10-13 17:45:08 +08:00
yinkaile 8ac7257a46 fixed merge errors 2017-10-12 18:15:21 +08:00