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

混淆问题 #45

Closed
vistar1986 opened this issue Apr 25, 2021 · 13 comments
Closed

混淆问题 #45

vistar1986 opened this issue Apr 25, 2021 · 13 comments

Comments

@vistar1986
Copy link

能否详细说说怎么进行混淆,按照DEMO上的混淆规则打包后无法正常使用框架,但是程序没有闪退

@vistar1986
Copy link
Author

image

@getActivity
Copy link
Owner

小伙子,无法使用框架是什么表现?

@getActivity
Copy link
Owner

小伙子,我在 Demo 中使用了代码混淆,并没有发现任何异常情况,都是可以正常请求的,你用 Demo 开启混淆模式试试看有没有这个问题。

@vistar1986
Copy link
Author

你好,刚刚我用DEMO开启混淆模式看了,混淆后网络请求没有带参数,但是不开启混淆是带参数的

@vistar1986
Copy link
Author

1619399128(1)

@getActivity
Copy link
Owner

getActivity commented Apr 26, 2021

@getActivity
Copy link
Owner

小伙子,我咋没有这个问题呢?你的 RequestApi 类是怎么写的?

@getActivity
Copy link
Owner

@getActivity
Copy link
Owner

我把请求参数类型改成了 Json 提交,也是没有这个问题的呢

@vistar1986
Copy link
Author

你好,我这边把混淆规则改了一下就可以了,DEMO中使用-keepclassmembernames,项目中改成-keep

@vistar1986
Copy link
Author

image

@vistar1986
Copy link
Author

image
这是我的RequestApi

@getActivity
Copy link
Owner

解决了就 OK

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

No branches or pull requests

2 participants