A modern fork of AndroLua+, a lua IDE for android app developing🌷
Chinese is the only language in this IDE because it's a hard work for me to add multi languages support :(
Break changes since MndroLua 3.0.0
Since 3.0.0, Moon3 used AndroidX and moved Activity to AppCompatActivity
Changes of LuaActivity:
onMenuItemSelected -> onOptionsItemSelected, featureId = Window.FEATURE_OPTIONS_PANEL
onCreateOptionsMenu -> true
All of projects should run debug and replace some methods.
For example, getActionBar
should be replaced with getSupportActionBar
See this for more details (Chinese)🍉
New features that were added in MndroLua
A modern and beautiful UI with night mode support:
AndroidManifest.xml compiling support:
New lua libraries:
-- Use any Java Class by full name
require 'javapackage'
local android = loadPackage('android')
print(android.os.Process.myPid())
-- Transplanted and Enchanted luajava.override
require 'javaoverride'
local NewTextView = luajava.override("android.widget.TextView", {
setText = function(self, super, ...)
local args = {...}
args[1] = "ARGS: ".. dump(args)
super(table.unpack(args))
end
})
local t = NewTextView(this)
t.text = "Test114514"
activity.setContentView(t)
MIT License (MndroLua, AndroLua+, AndroLua and LuaJava)
🌷MndroLua
- AndroidXml2AXml (For compiling AndroidXML)
- JDom (For compiling AndroidXML)
- Zip4j (For packing apk)
- LlamaLuaEditor (For a better LuaEditor)
- AndroLua+ (The core)
- AndroLua
- LuaJava
Although some projects were not listed here, all projects that were listed in build.gradle are used as libraries for AndroLua projects :)
🌷MndroLua: GitHub @MoonLeeeaf