{"action":"created","issue":{"url":"https://api.github.com/repos/bmfe/eros-template/issues/117","repository_url":"https://api.github.com/repos/bmfe/eros-template","labels_url":"https://api.github.com/repos/bmfe/eros-template/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/bmfe/eros-template/issues/117/comments","events_url":"https://api.github.com/repos/bmfe/eros-template/issues/117/events","html_url":"https://github.com/bmfe/eros-template/issues/117","id":308486182,"number":117,"title":"关于原生module的扩展","user":{"login":"anicy","id":8448282,"avatar_url":"https://avatars1.githubusercontent.com/u/8448282?v=4","gravatar_id":"","url":"https://api.github.com/users/anicy","html_url":"https://github.com/anicy","followers_url":"https://api.github.com/users/anicy/followers","following_url":"https://api.github.com/users/anicy/following{/other_user}","gists_url":"https://api.github.com/users/anicy/gists{/gist_id}","starred_url":"https://api.github.com/users/anicy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anicy/subscriptions","organizations_url":"https://api.github.com/users/anicy/orgs","repos_url":"https://api.github.com/users/anicy/repos","events_url":"https://api.github.com/users/anicy/events{/privacy}","received_events_url":"https://api.github.com/users/anicy/received_events","type":"User","site_admin":false},"labels":[{"id":748458688,"url":"https://api.github.com/repos/bmfe/eros-template/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"myliuyx","id":5476801,"avatar_url":"https://avatars2.githubusercontent.com/u/5476801?v=4","gravatar_id":"","url":"https://api.github.com/users/myliuyx","html_url":"https://github.com/myliuyx","followers_url":"https://api.github.com/users/myliuyx/followers","following_url":"https://api.github.com/users/myliuyx/following{/other_user}","gists_url":"https://api.github.com/users/myliuyx/gists{/gist_id}","starred_url":"https://api.github.com/users/myliuyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myliuyx/subscriptions","organizations_url":"https://api.github.com/users/myliuyx/orgs","repos_url":"https://api.github.com/users/myliuyx/repos","events_url":"https://api.github.com/users/myliuyx/events{/privacy}","received_events_url":"https://api.github.com/users/myliuyx/received_events","type":"User","site_admin":false},"assignees":[{"login":"myliuyx","id":5476801,"avatar_url":"https://avatars2.githubusercontent.com/u/5476801?v=4","gravatar_id":"","url":"https://api.github.com/users/myliuyx","html_url":"https://github.com/myliuyx","followers_url":"https://api.github.com/users/myliuyx/followers","following_url":"https://api.github.com/users/myliuyx/following{/other_user}","gists_url":"https://api.github.com/users/myliuyx/gists{/gist_id}","starred_url":"https://api.github.com/users/myliuyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myliuyx/subscriptions","organizations_url":"https://api.github.com/users/myliuyx/orgs","repos_url":"https://api.github.com/users/myliuyx/repos","events_url":"https://api.github.com/users/myliuyx/events{/privacy}","received_events_url":"https://api.github.com/users/myliuyx/received_events","type":"User","site_admin":false},{"login":"aa453509345","id":13497924,"avatar_url":"https://avatars2.githubusercontent.com/u/13497924?v=4","gravatar_id":"","url":"https://api.github.com/users/aa453509345","html_url":"https://github.com/aa453509345","followers_url":"https://api.github.com/users/aa453509345/followers","following_url":"https://api.github.com/users/aa453509345/following{/other_user}","gists_url":"https://api.github.com/users/aa453509345/gists{/gist_id}","starred_url":"https://api.github.com/users/aa453509345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aa453509345/subscriptions","organizations_url":"https://api.github.com/users/aa453509345/orgs","repos_url":"https://api.github.com/users/aa453509345/repos","events_url":"https://api.github.com/users/aa453509345/events{/privacy}","received_events_url":"https://api.github.com/users/aa453509345/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-26T08:59:47Z","updated_at":"2018-03-27T01:57:34Z","closed_at":null,"author_association":"NONE","body":"- 背景\r\n我想基于weexframework 进行自定义模块开发，而这个模块单独作为应该lib存在的，看官方demo中有amap的扩展是作为插件形式存在的，且在framework中有注册，\r\n\r\n\r\n![Uploading Jietu20180326-165649.jpg…]()\r\n\r\n开发者在进行自定义模块开发的时候是否也需要对weexframework进行配置？ 或者有其他的方式，谢谢\r\n\r\nPluginComponentsAndModules  -- 》 \r\n\r\n```\r\n   private HashMap<String, String> getPluginAmapModules() {\r\n        HashMap<String, String> amapMoudles = new HashMap<>();\r\n        amapMoudles.put(\"amap\", \"com.plugamap.module.WXMapModule\");\r\n        return amapMoudles;\r\n    }\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/bmfe/eros-template/issues/comments/376370184","html_url":"https://github.com/bmfe/eros-template/issues/117#issuecomment-376370184","issue_url":"https://api.github.com/repos/bmfe/eros-template/issues/117","id":376370184,"user":{"login":"myliuyx","id":5476801,"avatar_url":"https://avatars2.githubusercontent.com/u/5476801?v=4","gravatar_id":"","url":"https://api.github.com/users/myliuyx","html_url":"https://github.com/myliuyx","followers_url":"https://api.github.com/users/myliuyx/followers","following_url":"https://api.github.com/users/myliuyx/following{/other_user}","gists_url":"https://api.github.com/users/myliuyx/gists{/gist_id}","starred_url":"https://api.github.com/users/myliuyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myliuyx/subscriptions","organizations_url":"https://api.github.com/users/myliuyx/orgs","repos_url":"https://api.github.com/users/myliuyx/repos","events_url":"https://api.github.com/users/myliuyx/events{/privacy}","received_events_url":"https://api.github.com/users/myliuyx/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T01:57:34Z","updated_at":"2018-03-27T01:57:34Z","author_association":"COLLABORATOR","body":"正在做这一块的重构和优化， 开发者是可以 自已定义模块开发的。\r\n现在的注册 Components 或者 Modules 你可以暂时的 注册在 wxframework/res/xml/app_config.xml 文件里。里面有一些我们拓展的  component 和 module 映射关系， 你可以根据这个 参考下 如何 自定义 component 和 module  的开发。\r\n\r\n如果你自己拓展的lib 库相关的话 你可以多先借鉴下 我们的 amap。 \r\nnexus 是一个base库， 很多公共的、抽象的、全局的。 基类都会放在这儿。\r\n\r\n具体自己的lib库逻辑可以按照你自己的逻辑写不需要太多的考虑 weex 或者eros. \r\n仅在 最后你可能需要 有一个和 weex 对接的  component 和 module 时 参考下 现在已有的。\r\n"}}
{"actor":{"display_login":"myliuyx"}}