Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve the problem that config doesn't update when remove the config closure in build.gradle & sync it #223

Merged
merged 1 commit into from
Jul 18, 2017

Conversation

wangfuda
Copy link
Contributor

Summary

解决自动生成的repluginHostConfig文件中的配置信息未更新问题

Description

测试IDE:android studio 2.3.2
1.在宿主的build.gradle中配置了repluginHostConfig闭包,并编译,生成的repluginHostConfig文件配置信息生效
2.在宿主的build.gradle中移除了repluginHostConfig闭包,并点击'同步gradle'按钮,repluginHostConfig文件配置信息未更新

原因:修改build.gradle后,同步gradle,但是宿主gradle插件中的RepluginConfig类的静态变量仍保存着上一次构建的值,而且因为build.gradle中删除了配置信息,并不会从build.gradle中更新这些静态变量。

@erhu erhu merged commit 80f1bf0 into Qihoo360:master Jul 18, 2017
@jiongxuan
Copy link
Contributor

非常感谢 osan 大神的PR!代码已合入,在下一版中体现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants