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

Move the proguard rules into aar by consumerProguardFiles #61

Merged
merged 1 commit into from Oct 10, 2018

Conversation

heimashi
Copy link

@heimashi heimashi commented Oct 10, 2018

将需要混淆的配置放到aar内部,外部使用者不用关心混淆的配置。通过gradle的consumerProguardFiles配置,在打包成的aar或者发布到maven里的aar里,会生成proguard.txt文件,该文件会影响aar的使用者的编译混淆。另外需要发布新的jcenter版本才能将proguard.txt文件包含进去。

@JessYanCoding
Copy link
Owner

https://github.com/JessYanCoding/RetrofitUrlManager/blob/master/manager/build.gradle#L12 我之前一个库也是这样做的,这个库忙起来就忘了。。。

@JessYanCoding JessYanCoding merged commit 62effaf into JessYanCoding:master Oct 10, 2018
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.

None yet

2 participants