-
Notifications
You must be signed in to change notification settings - Fork 867
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
Optimized Proguard won't work with Rhino Proguard 'rules' #388
Comments
Sorry, I don’t know much about Proguard, but I think the culprit is the Debugger UI that depends on Swing, which is not present on Android.
|
Those proguard rules are pretty much the same. Maybe they're slightly less restrictive but
covers all of those:
Solution #2 seems like the way to go and also the proper way. I should be able to get something up and running however I'd favor an official release from you that fixes this. Also that way everyone can benefit from the improvements. What are the exact steps for achieving this? Do we want a separate build or find a tool to strip out the package from the built jar and then release it with some new maven coordinates? |
Yeah, I though so, but figured maybe
Sorry, I’m not a maintainer, these questions will have to be resolved with @gbrail. Though, I’d imagine a separate build to be an easier way. |
That might be a valid point. I tried it out and so far it seems to work. I'll close this then and investigate whether any additional rules are needed or not. Thanks already. |
@vanniktech |
The following proguard 'rules' - which are basically keep everything - work for the normal proguard round:
However they won't work when doing optimizations via:
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
It'll fail with:
The moment I switch back to
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
it works again.Is there any solution to this? Unfortunately, I have to rely on optimizations since I want to shrink some bytes of the final APK.
The text was updated successfully, but these errors were encountered: