-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
混淆后无法运行 #85
Comments
确认问题,安排在近期解决。 |
已支持宿主代码混淆,请更新最新代码,配置混淆如 # Support Libraries
-dontwarn android.support.**
-keep class android.support.** { *; }
-keep interface android.support.** { *; }
# Small
-keep class net.wequick.small.Small { public *; }
-keep interface net.wequick.small.** { *; } |
为了解构我们一般都很少将代码放到宿主中,所以支持宿主混淆作用不大.插件混淆基本没法使用,lib使用混淆直接报错,而app会将一些公共库重新打包到自己.混淆是减少体积和提高安全性,能不能实现呢? |
因为我们要从插件中分离出公共代码,如果要支持混淆,会很麻烦:
所以这个活很细呀,思路虽然有,但是具体操作起来恐怕没有那么顺利,需要时间。 |
gradle-small:0.9.0 已支持混淆,关闭本问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我导入demo可以正常运行,但是在宿主工程打开混淆开关后,就无法运行了,请问混淆要注意什么吗?
运行后的异常日志:
The text was updated successfully, but these errors were encountered: