-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1、优化Android的模块与面向对象模块功能,让其行为与在iOS上一致。
2、修复iOS上LuaValue如果为Object类型时,可能丢失Object引用问题而产生崩溃。
- Loading branch information
Showing
58 changed files
with
1,958 additions
and
1,219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
Sample/Android/app/src/main/jniLibs/arm64-v8a/libLuaScriptCore.so
Binary file not shown.
Binary file modified
BIN
+4 KB
(100%)
Sample/Android/app/src/main/jniLibs/armeabi-v7a/libLuaScriptCore.so
Binary file not shown.
Binary file modified
BIN
+4 KB
(100%)
Sample/Android/app/src/main/jniLibs/armeabi/libLuaScriptCore.so
Binary file not shown.
Binary file modified
BIN
+636 Bytes
(100%)
Sample/Android/app/src/main/jniLibs/mips/libLuaScriptCore.so
Binary file not shown.
Binary file modified
BIN
-3.48 KB
(100%)
Sample/Android/app/src/main/jniLibs/mips64/libLuaScriptCore.so
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Sample/Android/app/src/main/jniLibs/x86/libLuaScriptCore.so
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Sample/Android/app/src/main/jniLibs/x86_64/libLuaScriptCore.so
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ function add (a, b) | |
|
||
return a+b; | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Source/Android/luascriptcore/src/main/java/cn/vimfung/luascriptcore/LuaFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package cn.vimfung.luascriptcore; | ||
|
||
/** | ||
* Lua方法对象 | ||
* Created by vimfung on 16/11/1. | ||
*/ | ||
public class LuaFunction extends LuaBaseObject | ||
{ | ||
private LuaContext _context; | ||
|
||
/** | ||
* 创建方法对象 | ||
* @param nativeId 本地对象标识 | ||
* @param context 上下文对象 | ||
*/ | ||
protected LuaFunction(int nativeId, LuaContext context) | ||
{ | ||
super(nativeId); | ||
_context = context; | ||
} | ||
|
||
/** | ||
* 调用方法 | ||
* @param arguments 参数列表 | ||
* @return 返回值 | ||
*/ | ||
public LuaValue invoke(LuaValue[] arguments) | ||
{ | ||
return LuaNativeUtil.invokeFunction(_context, this, arguments); | ||
} | ||
} |
Oops, something went wrong.