{"id":13782857,"url":"https://github.com/jie-meng/LuaDroid","last_synced_at":"2025-05-11T16:33:10.286Z","repository":{"id":85054069,"uuid":"84264070","full_name":"jie-meng/LuaDroid","owner":"jie-meng","description":"Lua interpreter for Android","archived":false,"fork":false,"pushed_at":"2018-01-28T14:29:12.000Z","size":4966,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T18:16:56.082Z","etag":null,"topics":["android","interpreter","lua","script"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jie-meng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-03-08T01:26:21.000Z","updated_at":"2023-12-08T02:43:54.000Z","dependencies_parsed_at":"2023-03-13T04:09:45.456Z","dependency_job_id":null,"html_url":"https://github.com/jie-meng/LuaDroid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jie-meng%2FLuaDroid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jie-meng%2FLuaDroid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jie-meng%2FLuaDroid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jie-meng%2FLuaDroid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jie-meng","download_url":"https://codeload.github.com/jie-meng/LuaDroid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253595973,"owners_count":21933484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","interpreter","lua","script"],"created_at":"2024-08-03T18:01:46.394Z","updated_at":"2025-05-11T16:33:09.984Z","avatar_url":"https://github.com/jie-meng.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# LuaDroid -- Lua interpreter for Android\n\n## How to import LuaDroid into Android project\n\n1. Add the JitPack repository to your build file\n    - gradle\n\n        Add it in your root build.gradle at the end of repositories:\n        \n        ```\n        allprojects {\n            repositories {\n                ...\n                maven { url 'https://jitpack.io' }\n            }\n        }\n        ```\n        \n    - maven\n    \n        ```\n        \u003crepositories\u003e\n            \u003crepository\u003e\n                \u003cid\u003ejitpack.io\u003c/id\u003e\n                \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n            \u003c/repository\u003e\n        \u003c/repositories\u003e\n        ```\n        \n2. Add the dependency\n    - gradle\n        \n        ```\n        dependencies {\n                compile 'com.github.jie-meng:LuaDroid:V1.0.0'\n        }\n        ```\n        \n    - maven\n        \n        ```\n        \u003cdependency\u003e\n            \u003cgroupId\u003ecom.github.jie-meng\u003c/groupId\u003e\n            \u003cartifactId\u003eLuaDroid\u003c/artifactId\u003e\n            \u003cversion\u003eV1.0.0\u003c/version\u003e\n        \u003c/dependency\u003e\n        ```\n\n## Quick start\n\n```\n//create instance\nlua = new Lua();\n\n//get\nString s = lua.getString(\"s\", \"\");\nint i = lua.getInteger(\"i\", 0);\ndouble d = lua.getDouble(\"d\", 0.0);\nboolean b = lua.getBoolean(\"b\", false);\n\n//set\nlua.setString(\"s\", \"test_string\");\nlua.setInteger(\"i\", 21);\nlua.setDouble(\"d\", 3.14);\nlua.setBoolean(\"b\", true);\n\n//others\nint type = lua.getType(\"s\");\nboolean b = lua.isInteger(\"i\");\nPair\u003cBoolean, String\u003e result = lua.parseLine(\"s = string.lower('Text')\");\nPair\u003cBoolean, String\u003e result = lua.parseFile(\"/home/user/test.lua\");\n\n//free resource\nlua.close();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjie-meng%2FLuaDroid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjie-meng%2FLuaDroid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjie-meng%2FLuaDroid/lists"}