-
Notifications
You must be signed in to change notification settings - Fork 536
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
Add proguard rule #289
Add proguard rule #289
Conversation
Well, I would actually prefer to document only proguard rules vs bundling them by default |
@serggl I have removed the default file and added a line in the read me. Out of curiosity, what is the downside to bundling the rule with the release? |
well,maybe Im just too wary about any 'default' proguard usage. |
@serggl the definitions in the consumer proguard file is essentially added to the user's proguard file if they build with proguard. Since this rule is required for everyone who minifies, it makes sense to bundle it with the library so they don't have to manually copy it. That's also why there's a default android proguard file and why you don't need to add your own lines for many libraries. |
ok, then lets go with your original proposal with one addition: we need to explicitly document what proguard rules are going to be bundled with the library |
@serggl I added the file back. That line is all I needed for the project to work, but if there are other cases involving reflection that I'm not aware of it should be added to the file as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Add proguard rule * Change word usage * Rename proguard file to be library version * Remove default proguard and only document it * Add back consumer file
I didn't see any documentation on proguard so I added the one rule from google's tutorial. I have tested it in my own project and it seems to work.
I'd also like to add some more documentation on certain methods, namely to make it clear what they return, whether they are async or not, whether they can be run on the ui thread, etc. That will be another PR though, but if I have your attention I'd like to perhaps verify a few things.