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
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
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
eebb78103e
Merge pull request #1003 from cocos-creator/v1.7-release
...
sync branch
2017-11-21 20:26:30 +08:00
Jare Guo
199b427c4f
gulp: use spawn instead of exec to avoid crash on windows ( #998 )
...
* gulp: use spawn instead of exec to avoid crash on windows
* update readme to intro gulp sign-simulator
2017-11-21 16:16:14 +08:00
yinkaile
3fb0cc276d
support zip compress js files ( #1001 )
2017-11-21 16:08:17 +08:00
James Chen
0f7596959a
Follows creator documentation guildline for JSB 2.0 Chinese Tutorial. ( #1002 )
2017-11-21 14:30:57 +08:00
CocosRobot
8bd4fce92e
[AUTO][ci skip]: updating cocos2dx_files.json ( #1000 )
2017-11-20 16:43:43 +08:00
James Chen
09e55152ec
Adds JSB2.0 English documentation. ( #999 )
2017-11-20 16:30:13 +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
9762662d30
Updates docs for debugging. ( #995 )
2017-11-17 15:22:58 +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
pandamicro
ad3b3599ab
Merge pull request #993 from dumganhar/v1.7
...
Any kinds of se::Value should be able to be converted to std::string.
2017-11-17 14:13:45 +08:00
James Chen
69ee2e12bb
Reverts localStorage changes in PR #545 since any js value could be converted to string.
...
Keeps the behavior the same as web browser.
2017-11-17 13:57:30 +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
4ccf1df75a
Adds se::Object::toString() method for converting an Object to std::string. ( #992 )
2017-11-17 13:40:25 +08:00
James Chen
f8b9f8134c
bug fixs from #959 but except changes in CCSpriteBatchNode.cpp. ( #991 )
...
* bug fixs
* Reverts changes in CCSpriteBatchNode.cpp
2017-11-16 14:00:11 +08:00
James Chen
de091e7369
se::Object::getTypedArrayData fix for jsc and v8. Need to consider byteOffset of ArrayBuffer stored in TypedArray. ( #989 )
2017-11-16 10:39:33 +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
2acd8b555a
Adds assertion while uses a wrong debug address or port in DEBUG mode. ( #986 )
2017-11-15 14:23:28 +08:00
CocosRobot
2c162cb6b4
[AUTO][ci skip]: updating cocos2dx_files.json ( #985 )
2017-11-14 18:34:20 +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
0fccb356ae
Merge pull request #984 from cocos-creator/v1.7-release
...
Merge v1.7-release
2017-11-14 15:13:24 +08:00
James Chen
66bc0e63a3
Uses toStringForce for location name since it's probably be undefined in v8. ( #983 )
...
And other minor fixes for sm and chakracore.
2017-11-14 14:58:44 +08:00
James Chen
94840bb5c2
Fixes potential crash in eventDispatcher.removeListener(listener). ( #982 )
...
It may invoke `releaseListener` two times if it's dispatching event. `releaseListener` will call releaseScriptObject internally which may cause the `listener` being garbage collected.
It's hard to reproduce this issue in v1.6 since v1.6 uses SpiderMonkey as its JS engine which is not sensitive to do a GC operation.
2017-11-14 14:50:05 +08:00
Jare Guo
2a8702af7c
Merge pull request #981 from cocos-creator/v1.7-release
...
Update V1.7
2017-11-13 02:50:04 -06:00
James Chen
d2462a8c7f
Fixes apple reject apps reference JSSynchronousGarbageCollectForDebugging ( #980 )
2017-11-12 09:18:07 +08:00
James Chen
d904232f95
Uses shorter module name (cocos2dx_internal_static -> cis) to avoid compilation errors on Windows system which has a limitation of 260 bytes for build path. ( #979 )
...
Yep, probably, we could define `buildDir` variable in build.gradle, but let's investigate later.
2017-11-12 09:16:54 +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
yinkaile
decf8f0b99
fixed windows binary template ( #975 )
2017-11-09 17:37:19 +08:00
James Chen
a55cb9b0d3
Adds New API se::Object::createTypedArray and deprecates se::Object::createUint8TypedArray. ( #974 )
...
* Adds New API se::Object::createTypedArray and deprecates se::Object::createUint8TypedArray.
* Fixes mistake while cherry-pick.
2017-11-09 17:06:13 +08:00
James Chen
53921c2420
Merge pull request #973 from cocos-creator/v1.7-release
...
Merge v1.7-release
2017-11-09 16:34:55 +08:00