Skip to content

Crescent-of-Maya/MndroLua

MndroLua

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 :(

Downloads

Releases

Break changes

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

Modifies

See this for more details (Chinese)🍉

New features

New features that were added in MndroLua

A modern and beautiful UI with night mode support: A materiel design 3 based UI, with code editor

A better layout editor: A Dialog with opinions of a View

New LuaEditor: A smarter code compiler that can tell you the variables

AndroidManifest.xml compiling support: Opened manifest.xml You need a manifest.xml to compile a project

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)

License

MIT License (MndroLua, AndroLua+, AndroLua and LuaJava)

Credits

🌷MndroLua

Although some projects were not listed here, all projects that were listed in build.gradle are used as libraries for AndroLua projects :)

Authors

🌷MndroLua: GitHub @MoonLeeeaf