Hi All,
I am new to Lua and Corona. I know Corona simulator is capable of generating APK and IPA files using Corona simulator. I want to know is there any way to generate native android and iOS code from the Lua code?
Hi All,
I am new to Lua and Corona. I know Corona simulator is capable of generating APK and IPA files using Corona simulator. I want to know is there any way to generate native android and iOS code from the Lua code?
What do you mean by generate native android and iOS code from Lua? Can you provide an example?
Rob
By Native code generation i mean, can corona SDK generate .java files if we compile it for android? If I want to fix some issues only for android build, or I want to have some different behavior only for android, is that possible with Corona & Lua?
Thanks,
Swati
Lua is a scripting language, Corona doesn’t compile it “back” to java/objective-c it simply interprets the lua script and reacts…
If you want to get access to raw java/objective-c/swift you need to upgrade to enterprise and build your own function that is enabled on the lua side etc.
And or use Corona Cards
As mentioned above, Corona only runs lua code. It means that there is some application skeleton ready (eg. Written in java for android). This skeleton contains lua interpreter. When you start application this skeletons looks for main.lua to start executing your scripts.
When you build application, Corona embedds your lua files to predefined folder - the same goes for graphics, and produces apk.
What do you mean by generate native android and iOS code from Lua? Can you provide an example?
Rob
By Native code generation i mean, can corona SDK generate .java files if we compile it for android? If I want to fix some issues only for android build, or I want to have some different behavior only for android, is that possible with Corona & Lua?
Thanks,
Swati
Lua is a scripting language, Corona doesn’t compile it “back” to java/objective-c it simply interprets the lua script and reacts…
If you want to get access to raw java/objective-c/swift you need to upgrade to enterprise and build your own function that is enabled on the lua side etc.
And or use Corona Cards
As mentioned above, Corona only runs lua code. It means that there is some application skeleton ready (eg. Written in java for android). This skeleton contains lua interpreter. When you start application this skeletons looks for main.lua to start executing your scripts.
When you build application, Corona embedds your lua files to predefined folder - the same goes for graphics, and produces apk.