defold (official)
defold/extension-android
An example native extension for Android that combines C++, .java sources, a
.jar, a prebuilt static library and Android resources. On Android it
registers the androidnative Lua module with functions such as vibrate,
getraw and multiply; other platforms get a stub extension with no module.
Lua API not typed — upstream ships no .script_api, so resolve skips it.
- GitHub: defold/extension-android — pinned to
9e6e3d2- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
https://github.com/defold/extension-android/archive/9e6e3d286fff5388e9eaa2ee415e8b32f9d7ea07.zip— togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Build the project for Android.
- Check that
androidnativeis not nil before calling it, as the example menu GUI script does. - See the
java_srcandlib_srcbuild scripts for how the.jarand.afiles are produced.
- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,