Does AndroLua have a way to process lua scripts from resource files?

Is there a way to transfer files like res/raw/myfile.lua for upload to AndroLua . These files can be part of apk at compile time . Thanks

+2
source share
1 answer

No, you cannot right now, although this is a good idea, and I can implement it soon. In addition, this question is better to go to the problems of AndroLua .

Update

Now you can load modules from application assets. The project has been updated with an example of the greet.lua module stored in assets. This was done by creating a custom Lua module loader for require in Java, which uses the AssetManager to load the module.

+3
source

Source: https://habr.com/ru/post/904060/


All Articles