Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@override problems with latest SDK #4

Open
stevedonovan opened this issue Aug 2, 2012 · 2 comments
Open

@override problems with latest SDK #4

stevedonovan opened this issue Aug 2, 2012 · 2 comments

Comments

@stevedonovan
Copy link
Contributor

Hi Michal!

You use @OverRide for interface implementations, and new SDK is picky about that, because it is not a true override of a method.

After removing these, everything worked fine, thank you!

I've modified AndroLua so that it now provides a proper little Lua REPL, with a small luasocket client program.

@mkottman
Copy link
Owner

mkottman commented Aug 2, 2012

Thanks, actually I haven't touched AndroLua for some time, and I know the SDK has been updated (several times) since then. Those used to be overrides once (they are added automatically by Eclipse). I will have a look at it and update the code.

The socket part was out of my frustration of typing code using the Android keyboard. Could you share your REPL so that I could add it to the repository?

@stevedonovan
Copy link
Contributor Author

Sure, I'll put up a fork (such a nice word these days ;)). The key difference is that the socket server now writes back to the connected program, so that a simple little LuaSocket app can give a REPL. I also added a helper library as an asset which allows dynamic resolution of classes:

require 'import'
import 'android.os.*'
print(Environment:getExternalStorageDirectory())

The other thing I added were some permissions so that I could make my phone vibrate from the command line ;)

I will add one more thing, which would extend package.path to look in `context.getExternalFilesDir(null)+"/lua/?.lua" as well and provide a command for uploading Lua files to this directory. Useful for development; obviously scripts must be deployed as assets for deployment.

I did some fixes to LuaJava once and I'll try to recover what I did; I used to be a big fan and even contemplated helping with maintainance since the Brazilians are so busy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants