Skip to content

Commit 767134c

Browse files
authored
Merge 3.17.2 (#19755)
* modify engine version (#19677) * protect empty string (#19680) * fix twice copy lua scripts error (#19687) (#19691) * rename Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.* to Cocos2dxLuaJavaBridge.* (#19694) * fix get environment (#19690) * update release note and change log (#19711) * [js-tests/cpp-tests] iOS: add fonts to Info.plist (#19708) * add fonts to Info.plist * use tabs instead of spaces * fix lua-tests * Update CHANGELOG * setPercent after initialization (#19718)
1 parent dd99b1c commit 767134c

File tree

18 files changed

+108
-51
lines changed

18 files changed

+108
-51
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,4 @@ temp/
182182

183183
# external libs zip
184184
*.zip
185+
**/simulator/

CHANGELOG

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
cocos2d-x-3.17.2 May.21 2019
2+
3+
[NEW] Network: added clear requests and responses method to httpclient
4+
[NEW] UI: VideoPlayer added ability to enable/disable looping, resonding user input
5+
[NEW] UI: VideoPlayer added function to set style
6+
[NEW] IMEDispacher: added a function to check if any IME dispatcher is active
7+
[NEW] Renderer: add a function to get current clearing color
8+
[NEW] Lua: added binding codes for `EventDispathcer::addCustomEventListener()`
9+
10+
[REFINE] Android: added optimization codes for OPPO devcies
11+
[REFINE] Network: improved websocket traces
12+
[REFINE] Android: supported Android P cutout area
13+
[REFINE] FontAtlas: font atlas texture initialization delayed
14+
[REFINE] LOG: CCLOG may block thread on windows
15+
16+
[FIX] FileUtils:fixed a bug that `listFiles()` can not work correctly if the file path starts with `assets/` on Android
17+
[FIX] AssetsManager: fixed a bug that `_percent` is always be 0 during the update process
18+
[FIX] Texture2D: fixed memory leak if `Texture2D::setAlphaTexture()` is invoked many times
19+
[FIX] FontAtlasCache: avoided crash if a file path is too long
20+
[FIX] Audio: fixed crash on iOS
21+
[FIX] UI: VideoPlayer could not play video in obb file on Android
22+
[FIX] SpriteFrame: fixed performance issue in parsing plist files
23+
[FIX] 3rd: unzip failed to uncompress files
24+
125
cocos2d-x-3.17.1 Nov.19 2018
226

327
[REFINE] Renderer: properly reduce clear buffer times to save energy

cocos/cocos2d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ NS_CC_BEGIN
3232

3333
CC_DLL const char* cocos2dVersion()
3434
{
35-
return "cocos2d-x-3.17.1";
35+
return "cocos2d-x-3.17.2";
3636
}
3737

3838
NS_CC_END

cocos/cocos2d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ THE SOFTWARE.
3131

3232
// 0x00 HI ME LO
3333
// 00 03 08 00
34-
#define COCOS2D_VERSION 0x00031701
34+
#define COCOS2D_VERSION 0x00031702
3535

3636
//
3737
// all cocos2d include files

cocos/platform/CCFileUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ std::vector<std::string> FileUtils::listFiles(const std::string& dirPath) const
15171517
{
15181518
std::vector<std::string> files;
15191519
std::string fullpath = fullPathForDirectory(dirPath);
1520-
if (isDirectoryExist(fullpath))
1520+
if (!fullpath.empty() && isDirectoryExist(fullpath))
15211521
{
15221522
tinydir_dir dir;
15231523
std::string fullpathstr = fullpath;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
****************************************************************************/
2424

2525

26-
#include "scripting/lua-bindings/manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.h"
26+
#include "scripting/lua-bindings/manual/platform/android/jni/Cocos2dxLuaJavaBridge.h"
2727

2828
#include <android/log.h>
2929

cocos/scripting/lua-bindings/proj.android/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LOCAL_MODULE_FILENAME := libluaccandroid
99
LOCAL_ARM_MODE := arm
1010

1111
LOCAL_SRC_FILES := ../manual/platform/android/CCLuaJavaBridge.cpp \
12-
../manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp
12+
../manual/platform/android/jni/Cocos2dxLuaJavaBridge.cpp
1313

1414
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../.. \
1515
$(LOCAL_PATH)/../manual \

cocos/scripting/lua-bindings/proj.android/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(${target_name})
77

88
set(${target_name}_src
99
../manual/platform/android/CCLuaJavaBridge.cpp
10-
../manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp
10+
../manual/platform/android/jni/Cocos2dxLuaJavaBridge.cpp
1111
)
1212

1313
add_library(${target_name} STATIC

docs/RELEASE_NOTES.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,20 @@
22
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
33
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
44

5-
- [Cocos2d-x 3.17.1 Release Notes](#cocos2d-x-3171-release-notes)
5+
- [Cocos2d-x 3.17.2 Release Notes](#cocos2d-x-3172-release-notes)
66
- [Highlights](#highlights)
77

88
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
99

10-
# Cocos2d-x 3.17.1 Release Notes #
10+
# Cocos2d-x 3.17.2 Release Notes #
1111

12-
The 3.17.1 release focuses on bug fixing.
12+
Version 3.17.2 focuses on bugs fixing and performance opimization on OPPO devices.
1313

1414
## Highlights
1515

16-
- Fix Lua loading performance drop bug introduced in 3.17
17-
- Renderer limit glClear invoke times, reduce power consuming
18-
- optimize CMake script,fix some linking issues
19-
- Android use CMake as default PROP_BUILD_TYPE value
20-
- Android upgrade Gradle to 4.6, SDK 28, android gradle plugin 3.1.0
21-
- upgrade LuaJIT to 2.1.0-beta3, fix random crash in 3.17 Lua release mode
22-
- upgrade libwebsockets to 2.4.2
23-
- FileUtils provide thread-safe implementation and add missing cross-platform interfaces
24-
- limit Labels text length to fix render error
25-
- add Downloader binding to Lua
16+
- Performance optimization on OPPO devices
17+
- Fixed bug that`FileUtils::listFiles()` can not work correctly if the file path starts with `assets/` on Android
18+
- Fixed crash caused by Audio on iOS
19+
- Fixed bug that `VideoPlayer` can not play video in obb file on Android
2620

27-
This release contains more than 45 bugs fixed and 34 misc improvements, please refer to [ChangeLog](https://github.com/cocos2d/cocos2d-x/blob/v3/CHANGELOG)
21+
More detail change log please refer to [ChangeLog](https://github.com/cocos2d/cocos2d-x/blob/v3/CHANGELOG).

0 commit comments

Comments
 (0)