diff --git a/tests/lua-tests/proj.android/app/src/org/axmol/lua_tests/AppActivity.java b/tests/lua-tests/proj.android/app/src/org/axmol/lua_tests/AppActivity.java index 49c7f12ed0..309dc645d7 100644 --- a/tests/lua-tests/proj.android/app/src/org/axmol/lua_tests/AppActivity.java +++ b/tests/lua-tests/proj.android/app/src/org/axmol/lua_tests/AppActivity.java @@ -1,6 +1,7 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md). https://axmol.dev/ @@ -49,15 +50,15 @@ public class AppActivity extends AxmolActivity{ return; } // DO OTHER INITIALIZATION BELOW - + } @Override - public Cocos2dxGLSurfaceView onCreateView() { - Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); + public AxmolGLSurfaceView onCreateView() { + AxmolGLSurfaceView glSurfaceView = new AxmolGLSurfaceView(this); // Tests should create stencil buffer glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); - + return glSurfaceView; } } diff --git a/tests/lua-tests/proj.android/app/src/org/axmol/sample/LuaJavaBridgeTest/LuaJavaBridgeTest.java b/tests/lua-tests/proj.android/app/src/org/axmol/sample/LuaJavaBridgeTest/LuaJavaBridgeTest.java index 85ff93ec04..71d4b99da3 100644 --- a/tests/lua-tests/proj.android/app/src/org/axmol/sample/LuaJavaBridgeTest/LuaJavaBridgeTest.java +++ b/tests/lua-tests/proj.android/app/src/org/axmol/sample/LuaJavaBridgeTest/LuaJavaBridgeTest.java @@ -1,6 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. +Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md). https://axmol.dev/ @@ -27,13 +28,13 @@ package org.axmol.sample.LuaJavaBridgeTest; import org.axmol.lib.LuaBridge; public class LuaJavaBridgeTest -{ +{ public static int addTwoNumbers(final int num1,final int num2){ return num1 + num2; } - + public static void callbackLua(final String tipInfo,final int luaFunc){ - Cocos2dxLuaJavaBridge.callLuaFunctionWithString(luaFunc, "success"); - Cocos2dxLuaJavaBridge.releaseLuaFunction(luaFunc); + LuaBridge.callLuaFunctionWithString(luaFunc, "success"); + LuaBridge.releaseLuaFunction(luaFunc); } }