Commit Graph

717 Commits

Author SHA1 Message Date
James Chen fdd46f2718 Auto binds RenderTexture::saveToFile and fix js memory leak while saveToFile.
The callback _saveFileCallback has to be set to nullptr to release se::Value the std::function captures.
2017-10-26 12:44:06 +08:00
James Chen e05915e947 Merge pull request #928 from dumganhar/v1.7
Fixes anysdk test code crash and iOS 8,9 crash issue
2017-10-25 20:02:19 +08:00
James Chen f69d1a98c9 isSupportIsArrayTestAPI -> isSupportArrayTestAPI, cache the results of isSupportXXXAPI. 2017-10-25 19:58:14 +08:00
James Chen 7e8d222087 reverts console.log binding. 2017-10-25 19:57:10 +08:00
CocosRobot 5dfb7e6c36 [ci skip][AUTO]: updating jsbinding automatically 2017-10-25 10:50:51 +00:00
James Chen a226766979 Fixes console.log on iOS 8 ~ 9. 2017-10-25 17:34:52 +08:00
James Chen 0af8d82b50 Corrects missuse of HandleObject in jsc/Class.cpp. 2017-10-25 16:31:27 +08:00
James Chen e1e3200366 Uses Higher performance of checking object instance of which class. 2017-10-25 16:30:52 +08:00
James Chen f4abdcb69a Don't use HandleObject for Object::createObjectWithClass 2017-10-25 16:28:48 +08:00
James Chen 843b5c9712 jswrapper works for iOS 8.0 . 2017-10-25 15:54:57 +08:00
James Chen 23de57afea Adds assertion in HandleObject for using native binding object in HandleObject. 2017-10-25 13:58:10 +08:00
James Chen 53e212835b minior fix for sm/Object.cpp 2017-10-24 16:02:47 +08:00
James Chen f4fb779391 minior fix for sm/Object.cpp 2017-10-24 16:01:57 +08:00
James Chen df2c482314 Adds license info for .h/.cpp files in jswrapper. 2017-10-24 15:56:37 +08:00
James Chen f76c8f464d Updates API comments for spidermonkey and chakracore. 2017-10-24 15:56:37 +08:00
James Chen ebbf8d8567 Removes unused line 2017-10-24 15:56:37 +08:00
James Chen 2d4b0bfd9b Updates API comments for v8. 2017-10-24 15:56:37 +08:00
James Chen 4869077bcc isArrayBuffer and isTypedArray hack. 2017-10-24 14:44:40 +08:00
James Chen 3a8940883f jsb2.0 docs update. 2017-10-24 11:43:51 +08:00
James Chen 1d7ce13590 JSC API for TypedArray and ArrayBuffer is supported from macOS 10.12, iOS 10. Try to hack it and make it work on lower version. 2017-10-24 11:43:33 +08:00
James Chen 3bdc85413c [iOS, macOS] Should fflush log output immediately for LOGD, LOGE in jswrapper. 2017-10-24 10:19:39 +08:00
James Chen 1173b2931b Pass wrong message in console.log to browser's console. 2017-10-24 10:05:24 +08:00
CocosRobot e0e7867719 [ci skip][AUTO]: updating jsbinding automatically 2017-10-23 07:16:38 +00: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 bd4a56370f Removes unused files from projects, includes spidermonkey libraries. 2017-10-19 17:45:41 +08:00
James Chen 4c8e57762b Adds jsb bindings of Cocos analytics for iOS and adds missing libcocosanalytics.jar. 2017-10-19 17:39:24 +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 f46cb75958 Merge pull request #907 from 2youyou2/native-modules
support native modules
2017-10-19 09:51:40 +08:00
James Chen 1265b26bba Supports cocos analytics for Android. iOS support is on the road. 2017-10-18 16:48:50 +08: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 72663e21f8 Merge branch 'native-modules' of github.com:2youyouo2/cocos2d-x-lite into native-modules 2017-10-18 11:30:21 +08:00
yinkaile c9dabff513 fixed ios project 2017-10-18 11:29:50 +08:00
2youyou2 790ae1fcf4 fixed windows project 2017-10-18 10:26:26 +08:00
James Chen f63aa25170 Fixes console.assert 2017-10-17 15:44:49 +08:00
James Chen fa4805203d Fixes a typo in docs. 2017-10-17 15:41:16 +08:00
James Chen c195c82c2f Improves native window.console support. Message could be shown both in Browser while debugging and Creator's console.
The line number of console.log(debug,info,warn,error) output in browser is precise.
2017-10-17 15:41:00 +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
James Chen 03057774cd Updates docs for Ref class binding. 2017-10-13 14:55:51 +08:00
yinkaile 8ac7257a46 fixed merge errors 2017-10-12 18:15:21 +08:00
yinkaile f7b2b1f87f Merge branch 'develop' into native-modules
# Conflicts:
#	cocos/scripting/js-bindings/auto/jsb_creator_auto.cpp
#	cocos/scripting/js-bindings/manual/jsb_creator_physics_manual.cpp
2017-10-12 17:48:16 +08:00
yinkaile d38e168441 support native modules 2017-10-12 17:35:08 +08:00
James Chen b9b9a88354 Don't crash if jsb.reflection.callStaticMethod invokes a nonexistent Java Class. 2017-10-12 15:31:24 +08:00
James Chen 2a9f8441fb Less asserts and more precondtions in jsb_xmlhttprequest.cpp. 2017-10-12 13:59:26 +08:00
James Chen 26375fcddc Updates docs for conversion functions. 2017-10-12 11:42:01 +08:00