{"action":"closed","issue":{"url":"https://api.github.com/repos/wequick/Small/issues/571","repository_url":"https://api.github.com/repos/wequick/Small","labels_url":"https://api.github.com/repos/wequick/Small/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/wequick/Small/issues/571/comments","events_url":"https://api.github.com/repos/wequick/Small/issues/571/events","html_url":"https://github.com/wequick/Small/issues/571","id":301637676,"number":571,"title":"引入自定义插件后，release 混淆打包编译报错","user":{"login":"liyongyiHL","id":16923047,"avatar_url":"https://avatars1.githubusercontent.com/u/16923047?v=4","gravatar_id":"","url":"https://api.github.com/users/liyongyiHL","html_url":"https://github.com/liyongyiHL","followers_url":"https://api.github.com/users/liyongyiHL/followers","following_url":"https://api.github.com/users/liyongyiHL/following{/other_user}","gists_url":"https://api.github.com/users/liyongyiHL/gists{/gist_id}","starred_url":"https://api.github.com/users/liyongyiHL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyongyiHL/subscriptions","organizations_url":"https://api.github.com/users/liyongyiHL/orgs","repos_url":"https://api.github.com/users/liyongyiHL/repos","events_url":"https://api.github.com/users/liyongyiHL/events{/privacy}","received_events_url":"https://api.github.com/users/liyongyiHL/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-02T03:04:08Z","updated_at":"2018-03-21T02:11:27Z","closed_at":"2018-03-21T02:11:27Z","author_association":"NONE","body":"<!--\r\n  Small ISSUE 须知\r\n  1. 在 Preview 模式下阅读贡献指南，确认需要创建此 issue\r\n  2. 保留本模板除注释区间 <!- -> 内的其他全部内容\r\n  3. 删除 <!- -> 区块，填写自己的内容\r\n  4. 在 Preview 模式下预览内容格式，修改至满意后再提交\r\n-->\r\n\r\n- [x] 我已阅读并理解 **[贡献指南](https://github.com/wequick/Small/blob/master/贡献指南.md)**，严格遵循其约定。\r\n\r\n# 错误报告\r\n\r\n## 你做了什么？\r\n  项目根目录中引入了自定义的一个插件，插件的功能为增加一个transform，在打包过程执行dex时动态为代码添加日志。 插件在app主项目的build.gralde文件中通过apply plugin 开启执行。\r\n\r\n<!-- 使问题重现的完整详细步骤，务必详细，否则重现不了没法改 -->\r\n\r\n## 你期望的结果是什么？\r\n使用自定义插件后 release 混淆包打包成功\r\n<!-- 预期中的结果。比如：Small能够正确编译数据绑定 -->\r\n\r\n## 实际结果是什么？\r\n但是在release 混淆 打包时会发生类找不到的问题， 以下为打开和关闭自定义插件时的打包日志对比。\r\n![image](https://user-images.githubusercontent.com/16923047/36881334-7a16fe4c-1e08-11e8-8d5d-8026991707ba.png)\r\n\r\n\r\n\r\n<!-- 格式务必先阅读贡献指南 -->\r\n\r\n## Small环境\r\n\r\n<!-- 编译时环境，粘贴 ./gradlew small 输出开始 -->\r\n\r\n### Compile-time\r\n\r\n```\r\n  gradle-small plugin : 1.1.0-alpha2 (project)\r\n                   small aar : 1.3.0-beta5 (project)\r\n               gradle core : 4.1\r\n         android plugin : 2.1.0\r\n                            OS : Mac OS X 10.12.6 (x86_64)\r\n```\r\n\r\n### Bundles\r\n| type |    name     |  PP  | sdk |  aapt  | support | file(armeabi) |  size   |\r\n|------|-------------|------|-----|--------|---------|---------------|---------|\r\n| host | app         |      | 25  | 25.0.2 | 25.1.0  |               |         |\r\n| stub | app+stub    |      | 25  | 25.0.2 | 25.1.0  |               |         |\r\n| app  | app.main    | 0x22 | 25  | 25.0.2 | 25.1.0  | *_appmain.so  | 52.1 KB |\r\n| lib  | lib.storage | 0x59 | 25  | 25.0.2 | 25.1.0  | *_storage.so  | 46.4 KB |\r\n\r\n<!-- 编译时环境，粘贴 ./gradlew small 输出结束 -->"}}
{"actor":{"display_login":"liyongyiHL"}}