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

代码混淆存在重大Bug #79

Open
994955138 opened this issue Sep 11, 2024 · 6 comments
Open

代码混淆存在重大Bug #79

994955138 opened this issue Sep 11, 2024 · 6 comments

Comments

@994955138
Copy link

库里面的这个混淆配置
-keep class * {
native ;
}
会导致引用这个库的项目全部不混淆。
应该改成

-keepclassmembers * {
native ;
}

@iichen-bycode
Copy link

bro 怎么修改的

@994955138
Copy link
Author

源码下载下来,自己改就好了

@994955138
Copy link
Author

这个是我自己改的 https://gitee.com/leezhicheng/my-pine.git

@iichen-bycode
Copy link

bro clone 源码改可以 怎么运行报错嘞

@k3x1n
Copy link

k3x1n commented Sep 26, 2024

bro clone 源码改可以 怎么运行报错嘞

不必如此麻烦,gradle依赖过pine项目之后,去gradle缓存目录(比如用户目录/.gradle/caches/modules-2/files-2.1/top.canyie.pine/core/0.3.0)找到core.aar,解压,修改proguard.txt,参考这个pr: 8bcf992
替换回aar文件,然后直接用aar的方式去依赖就好了。

@iichen-bycode
Copy link

bro clone 源码改可以 怎么运行报错嘞

不必如此麻烦,gradle依赖过pine项目之后,去gradle缓存目录(比如用户目录/.gradle/caches/modules-2/files-2.1/top.canyie.pine/core/0.3.0)找到core.aar,解压,修改proguard.txt,参考这个pr: 8bcf992 替换回aar文件,然后直接用aar的方式去依赖就好了。

三克油 bro

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

3 participants