Skip to content

Commit 9accefc

Browse files
committed
封版,版本号为2.1.0
Former-commit-id: 94b1de4130d870123a71c74c8f426ed527b40da5
1 parent 9672c4c commit 9accefc

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

LuaScriptCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "LuaScriptCore"
19-
s.version = "2.0.0"
19+
s.version = "2.1.0"
2020
s.summary = "An easy-to-use OC-Lua bridge"
2121

2222
# This description is used to generate tags and improve search results.

Source/Android/luascriptcore/compile-5.1.5.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ext {
7777
siteUrl = 'https://github.com/vimfung/LuaScriptCore'
7878
gitUrl = 'https://github.com/vimfung/LuaScriptCore.git'
7979

80-
libraryVersion = '2.0.0'
80+
libraryVersion = '2.1.0'
8181

8282
developerId = 'vimfung'
8383
developerName = 'Vim Fung'

Source/Android/luascriptcore/compile.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ext {
7777
siteUrl = 'https://github.com/vimfung/LuaScriptCore'
7878
gitUrl = 'https://github.com/vimfung/LuaScriptCore.git'
7979

80-
libraryVersion = '2.0.0'
80+
libraryVersion = '2.1.0'
8181

8282
developerId = 'vimfung'
8383
developerName = 'Vim Fung'

Source/iOS_OSX/Code/LuaScriptCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2016年 vimfung. All rights reserved.
77
//
88

9-
#define LuaScriptCoreVersion @"2.0.1"
9+
#define LuaScriptCoreVersion @"2.1.0"
1010

1111
#import "LSCContext.h"
1212
#import "LSCValue.h"

Source/iOS_OSX/LuaScriptCore-OSX-Swift/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.3.5</string>
18+
<string>2.1.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>

Source/iOS_OSX/LuaScriptCore-iOS-Swift/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.3.5</string>
18+
<string>2.1.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

Source/lua-common/StringUtils.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ std::string StringUtils::format (const char *format, ...)
4343
va_start(marker, format);
4444

4545
char buffer[1024] = {0};
46+
47+
#if _WINDOWS
4648
int size = vsnprintf_s(buffer, 1024, format, marker);
47-
//vsprintf(buffer, format, marker);
49+
#else
50+
int size = vsprintf(buffer, format, marker);
51+
#endif
4852

4953
va_end(marker);
5054

0 commit comments

Comments
 (0)