mirror of
https://github.com/devgianlu/librespot-android.git
synced 2026-04-25 21:35:49 +03:00
[GH-ISSUE #17] Enhancement: add obfuscation rules and use minify #15
Labels
No labels
bug
enhancement
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot-android#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vhaudiquet on GitHub (Jan 10, 2022).
Original GitHub issue: https://github.com/devgianlu/librespot-android/issues/17
If this app is here to showcase how librespot can be included in an Android app, i think it would be good to show the minimal proguard rules that should be added so that you can enable 'minify' for release configurations.
I went trough the hassle of testing that for my app, here are the rules i could come up with :
(from https://github.com/vhaudiquet/BladePlayer/blob/master/app/proguard-rules.pro)
I did not check what was needed for the Android Native decoder or the Tremolo decoder as i don't use them in my app for now.
It appears to be working keeping only those classes, and it cuts in half my app size.
I hope it can be useful to other people, this is why i'm sharing this here (and i think it should be included in the project, either in the proguard rules file or in the readme/documentation)