{"id":18841530,"url":"https://github.com/hanks-zyh/hydrogenapp","last_synced_at":"2025-04-14T07:30:58.913Z","repository":{"id":49842053,"uuid":"157888762","full_name":"hanks-zyh/hydrogenApp","owner":"hanks-zyh","description":"hydrogen is a pluggable android app","archived":false,"fork":false,"pushed_at":"2019-05-31T11:19:07.000Z","size":1263,"stargazers_count":170,"open_issues_count":3,"forks_count":27,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-27T21:11:12.376Z","etag":null,"topics":["android","lua","plugin"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanks-zyh.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}},"created_at":"2018-11-16T15:50:11.000Z","updated_at":"2024-05-14T13:53:49.000Z","dependencies_parsed_at":"2022-09-01T01:02:13.551Z","dependency_job_id":null,"html_url":"https://github.com/hanks-zyh/hydrogenApp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanks-zyh%2FhydrogenApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanks-zyh%2FhydrogenApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanks-zyh%2FhydrogenApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanks-zyh%2FhydrogenApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanks-zyh","download_url":"https://codeload.github.com/hanks-zyh/hydrogenApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248839307,"owners_count":21169790,"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","lua","plugin"],"created_at":"2024-11-08T02:51:40.000Z","updated_at":"2025-04-14T07:30:57.975Z","avatar_url":"https://github.com/hanks-zyh.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hydrogenApp\n\nhydrogen is a **pluggable** android app, use `Lua` develop android, minSdkVersion=\"15\", lua 5.3\nplugin wrote by `lua` program language\n\n[APK Download](https://www.coolapk.com/apk/pub.hydrogen.android)\n\n\u003cimg src=\"http://ww1.sinaimg.cn/large/8c9b876fly1fxadl4x1lfj20780780sk.jpg\"/\u003e\n\n## App Plugin\n\n![](http://image.coolapk.com/apk_image/2017/0706/1-for-148937-o_1bkb0ue7m16mp165il5srd41ei815-uid-518407.jpg.t.jpg)\n![](http://image.coolapk.com/apk_image/2017/0706/2-for-148937-o_1bkb0ue7n1h1p1ke3ssuj4q1dab16-uid-518407.jpg.t.jpg)\n![](http://image.coolapk.com/apk_image/2017/0706/3-for-148937-o_1bkb0ue7n1sn1nc01k8b17bk3h017-uid-518407.jpg.t.jpg)\n![](http://image.coolapk.com/apk_image/2017/0706/4-for-148937-o_1bkb0ue7natj1uk010qm1kbgdq218-uid-518407.jpg.t.jpg)\n![](http://image.coolapk.com/apk_image/2017/0901/S70901-173605-for-148937-o_1boucs1494kp1qo81qul1656ei9q-uid-518407.jpg.t.jpg)\n![](http://image.coolapk.com/apk_image/2017/0901/S70901-173626-for-148937-o_1boucsbvrkcu1omqrte5d8amc10-uid-518407.jpg.t.jpg)\n![](http://image.coolapk.com/apk_image/2017/0901/S70901-173652-for-148937-o_1boucsgnk6rlsvn1j9f1q8177n16-uid-518407.jpg.t.jpg)\n![](http://image.coolapk.com/apk_image/2017/0901/S70901-173716-for-148937-o_1boucsl56mdt10am1vgsqs099m1c-uid-518407.jpg.t.jpg)\n\n\n## 项目结构\n\n宿主：`sample`  \n宿主用到的 lua 文件： `lua_main`  \n\n插件目录：`lua`  \n脚本：script  \n\n\n### 插件开发步骤\n\n插件目录：lua  \n插件包含文件 `info.json` `main.lua`\n\n```\n{\n  \"id\": \"pub.hanks.gacha\",\n  \"name\": \"网易插画\",\n  \"icon\": \"http://ww1.sinaimg.cn/large/8c9b876fly1fhaaa8qcofj2046046we9.jpg\",\n  \"main\": \"main.lua\",\n  \"versionName\": \"1.0\",\n  \"versionCode\": 1,\n  \"desc\": \"网易每日插画排行\"\n}\n\nid: 插件唯一标识符号\nname: 插件名称\nicon: 插件图标\nmain: 插件启动文件\nversionName: 插件版本名称\nversionVersion: 插件版本号\ndesc: 插件描述\n```\n\n### 插件发布\n\n插件生成目录 api_luanroid, 执行 java 单元测试 `zipPlugin`， 该方法会打包好插件并更新获取插件的 api, 成功后，然后 push 到线上\n\n[lua语法](http://www.runoob.com/lua/lua-basic-syntax.html)\n[lua的手册](https://cloudwu.github.io/lua53doc/manual.html)\n\n```\n\nrequire \"import\"\nimport \"android.widget.*\"\nimport \"android.view.*\"\nimport \"android.app.*\"\nimport \"android.net.*\"\nimport \"android.content.*\"\n\n```\n\n\n### 更新每日壁纸\n\nhttps://coding.net/u/zhangyuhan/p/api_luanroid/git/blob/master/api/splash\n\n### 版本更新\n\nhttps://coding.net/u/zhangyuhan/p/api_luanroid/git/blob/master/api/update\n\n\n## 插件开发\n\n请看[插件开发指南](https://github.com/hanks-zyh/hydrogenApp/blob/master/PluginDev.md)，更多的功能使用可以参考已有的[插件列表](https://github.com/hanks-zyh/hydrogenApp/tree/master/lua)，目录为 lua 目录\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanks-zyh%2Fhydrogenapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanks-zyh%2Fhydrogenapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanks-zyh%2Fhydrogenapp/lists"}