-
Notifications
You must be signed in to change notification settings - Fork 62
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
Cannot exclude native
method
#157
Comments
While I cannot answer your questions (I simply do not know), the general advice on shrinking is: Do not. |
@thanhminh-vht sorry for being late to the party. Looking at the source code here, it shouldn't be that hard. One could add a setting to the shrinker and then check for the corresponding opcode:
If this is something you are interested in we are open to a merge request for this feature, otherwise we would close this ticket. Wdyt? |
The problem is that as soon as native methods are involved, the shrinker will not be able to analyze them and might remove dependent code. But yeah, if you do it all manually, that would work. But then again, you can just keep the manual methods by hand - as you need to go through them one by one either way to make sure they will still work after the shrinking. |
yGuard currently doesn't have a way to specify the shrinker to keep all
native
method. This make shrinking some fat jar that include native libraries (e.g. Eclipse SWT) nearly impossible.So my question is:
The text was updated successfully, but these errors were encountered: