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

[建议]:将混淆规则直接内置到库内 #141

Open
Reginer opened this issue Oct 15, 2024 · 2 comments
Open

[建议]:将混淆规则直接内置到库内 #141

Reginer opened this issue Oct 15, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Reginer
Copy link

Reginer commented Oct 15, 2024

你觉得框架有什么不足之处?【必答】

混淆规则粗暴而且比较笼统,实际不需要把库下面的所有类都keep吧。

不确定最小keep哪些文件,可以自己在库中内置一个混淆规则,有更新直接就改了使用的也不关注。

issue 是否有人曾提过类似的建议?【必答】

框架文档是否提及了该问题【必答】

是否已经查阅框架文档但还未能解决的【必答】

你觉得该怎么去完善会比较好?【非必答】

build.gradle文件中配置 consumerProguardFiles("consumer-rules.pro"),consumer-rules.pro文件中写当前库需要的混淆规则

@Reginer Reginer added the help wanted Extra attention is needed label Oct 15, 2024
@getActivity
Copy link
Owner

现在的框架不加混淆规则也是可以正常使用的,但是站在框架作者的角度来讲,是不希望你去混淆框架代码的,无论你出于何种目的。

@Reginer
Copy link
Author

Reginer commented Oct 16, 2024

如果想要保留框架版权信息可以增加一个标识类单独保持一个。
站在使用者的角度来说,开启混淆就为了减小体积,框架提供的那些api也不会全部用到,开启混淆可以将它们删掉,现在这规则加上了框架内没用到的api也都还在。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants