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

可以提供剔除某些类不被 shrink 的功能吗 #8

Closed
donglua opened this issue Apr 28, 2019 · 7 comments
Closed

可以提供剔除某些类不被 shrink 的功能吗 #8

donglua opened this issue Apr 28, 2019 · 7 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@donglua
Copy link

donglua commented Apr 28, 2019

No description provided.

@johnsonlee johnsonlee self-assigned this Apr 28, 2019
@johnsonlee johnsonlee added the enhancement New feature or request label Apr 28, 2019
@johnsonlee
Copy link
Collaborator

可以考虑以 project property 的形式提供过滤配置

@johnsonlee
Copy link
Collaborator

当然,最好的方式是能自动检测出哪些 symbols 不能 shrink

@donglua
Copy link
Author

donglua commented Apr 28, 2019

比如出现这种情况:

java.lang.NoSuchFieldError: No static field DEBUG of type Z in class Lcn/aaaaa/bbbbb/BuildConfig; or its superclasses (declaration of 'cn.aaaaa.bbbbb.BuildConfig' appears in /data/app/cn.aaaaa.bbbbb-Fgf9k7AC7q5I_ZxqoDefVg==/base.apk!classes2.dex)

@johnsonlee
Copy link
Collaborator

能粘一下 BuildConfig 中的内容么?或者用 javap -v cn/aaaaa/bbbbb/BuildConfig.class 也行

@johnsonlee
Copy link
Collaborator

或者把 buildscriptdependencies 中把 booster-transform-all 替换为:

classpath "com.didiglobal.booster:booster-transform-bugfix-toast:$booster_version"
classpath "com.didiglobal.booster:booster-transform-lint:$booster_version"
classpath "com.didiglobal.booster:booster-transform-usage:$booster_version"

@johnsonlee johnsonlee added this to the booster-v1.0 milestone Apr 29, 2019
johnsonlee added a commit that referenced this issue May 3, 2019
@johnsonlee
Copy link
Collaborator

Booster v0.2.0 is available

@johnsonlee johnsonlee added the bug Something isn't working label May 5, 2019
@johnsonlee
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants