Commit Graph

739 Commits

Author SHA1 Message Date
James Chen f2e03aa0b2 Adds missing files. 2017-11-03 15:26:26 +08:00
James Chen 6a8106c5f3 Updates Cocos Analytics relevant code.
Adds missing onPause, onResume, onDestroy invocation.
Disabled local debug by default.
Uses AnySDK channel ID in APK or IPA file if channel ID isn't found.
2017-11-03 15:19:03 +08:00
James Chen 6272f4f42e Empty implementation for the platforms that don't support Cocos Analytics. 2017-11-02 17:51:16 +08:00
James Chen 2c6a18ec0e Adds missing LOGD -> SE_LOGD 2017-11-02 12:50:24 +08:00
James Chen 61e593939a Merge pull request #945 from 2youyou2/optimize-culling
optimize director matrix operation
2017-11-02 12:01:01 +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 e3dfe089ca Adds missing \n 2017-11-02 11:20:41 +08:00
James Chen 2e9c14e87a cleanup fix for v8 2017-11-02 11:13:02 +08:00
James Chen 7d0979da3c Unify jsc parsing flow for SpiderMonkey. 2017-11-02 11:12:39 +08:00
James Chen a3c8ba6632 Prints ERROR log if native binding function return false. 2017-11-02 10:32:31 +08:00
yinkaile d7fa1f9e13 rename director culling functions 2017-10-31 18:23:13 +08:00
yinkaile 26ff253d8c support dynamic enable/disable culling 2017-10-31 15:37:12 +08:00
Jare Guo 428dd762c2 Merge pull request #941 from dumganhar/fix/645-native-refs
Fixes performance issus in jsb.registerNativeRef and jsb.unregisterNativeRef
2017-10-27 22:39:57 +08:00
James Chen 4730002095 Uses undefined check instead of ! operator since !0 will be true and id is probably equal to 0. in jsb.unregisterNativeRef. 2017-10-27 21:43:44 +08:00
James Chen 9368814446 Don't check target exist to improve a little performance. 2017-10-27 21:28:06 +08:00
James Chen 75864862bb Uses undefined check instead of ! operator since !0 will be true and id is probably equal to 0. 2017-10-27 21:27:19 +08:00
James Chen 479de69a14 Removes unused check before delete 2017-10-27 21:12:57 +08:00
James Chen f20950e7f7 Removes libjs_static.a and libmozglue in cocos2d_js_bindings.xcodeproj since we're using JSC for mac & iOS. 2017-10-27 11:10:05 +08:00
James Chen c6e1a012c1 unregisterNativeRef fix, return if targetID is null 2017-10-26 22:04:22 +08:00
James Chen 9f50c5f127 Fixes performance issus in jsb.registerNativeRef and jsb.unregisterNativeRef 2017-10-26 21:58:37 +08:00
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