fix bugs caused by multiple configurations #140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
一个项目多项配置
StringFog
导致的Bug一个项目里面多个
Project
都配置StringFog
会导致找不到所需的StringFog.java
提示
Missing class packageName.StringFog
,这里的
packageName
是插件apply
方法获取的最后一个Project
复现:
分别创建包名为
com.github.sample.A
和包名为com.github.sample.B
的两个Library
都配置StringFog
,ALibrary
打release
包的时候会提示找不到com.github.sample.B.StringFog
类这里
BLibrary
是项目运行时插件获取到的最后一个Project
,如果配置了三个StringFog
分别是A
,B
,C
就会提示找不到
C
包名下的StringFog.java
原因:
StringFogTransform
的数据都是通过静态变量赋值,className
一直都是最后一个Project
的包名,配置一个没有这个问题