{"id":20103255,"url":"https://github.com/bmfe/android-eros-plugin-simple","last_synced_at":"2025-05-06T08:31:13.879Z","repository":{"id":73328154,"uuid":"132077086","full_name":"bmfe/android-eros-plugin-simple","owner":"bmfe","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-09T06:09:02.000Z","size":144,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T10:27:36.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmfe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-04T02:48:39.000Z","updated_at":"2025-03-30T01:15:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"dfa25664-91c7-4564-b0cf-7170074f4324","html_url":"https://github.com/bmfe/android-eros-plugin-simple","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/bmfe%2Fandroid-eros-plugin-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmfe%2Fandroid-eros-plugin-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmfe%2Fandroid-eros-plugin-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmfe%2Fandroid-eros-plugin-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmfe","download_url":"https://codeload.github.com/bmfe/android-eros-plugin-simple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252648578,"owners_count":21782406,"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":[],"created_at":"2024-11-13T17:35:32.788Z","updated_at":"2025-05-06T08:31:13.871Z","avatar_url":"https://github.com/bmfe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Eros plugin Sample\n\n** Android 插件Sample **\n\n* 插件 简单封装了一个 Module   helloplugin  一个简单的弹出Toast操作。\n\n* 使用\n\n    ```\n\tvar helloplugin = weex.requireModule('helloplugin')\n\t```\n\n    ```js\n\thelloplugin.hello()\n\n    ```\n\n* 插件的封装方法\n\n* 1、直接在项目中new 一个Module  如图：\n图1![](https://raw.githubusercontent.com/myliuyx/source/master/plugin_new_1.jpg)\n\n图2![](https://raw.githubusercontent.com/myliuyx/source/master/plugin_new_2.jpg)\n\n图3![](https://raw.githubusercontent.com/myliuyx/source/master/plugin_new_3.jpg)\n\n图4![](https://raw.githubusercontent.com/myliuyx/source/master/plugin_new_4.jpg)\n\n\n* 2、将新创建的 Module 依赖进项目 如图。\n图5![](https://raw.githubusercontent.com/myliuyx/source/master/plugin_new_5.jpg)\n\n* 3、修改 Module 的 build.gradle 文件。\n\n一定要依赖：\n      ``` java\n        implementation 'com.github.bmfe.eros-nexus:nexus:1.0.1'\n      ```\n  图6![](https://raw.githubusercontent.com/myliuyx/source/master/plugin_new_6.png)  \n  \n\u003e 具体可参考如图6， 也可以下载此sample 查看，完事儿以后点击右上角 sync now 等待完成即可.\n\u003e implementation 'com.github.bmfe.eros-nexus:nexus:1.0.1', 库\n  依赖请参考最新版本 自行修改。\n  \n * 4、后面您可以随意写您的插件逻辑了， 集体 的注册可以参考 `sample` 中的 ErosPluginSample.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmfe%2Fandroid-eros-plugin-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmfe%2Fandroid-eros-plugin-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmfe%2Fandroid-eros-plugin-simple/lists"}