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

Add proguard rule #289

Merged
merged 5 commits into from
Jul 31, 2017
Merged

Add proguard rule #289

merged 5 commits into from
Jul 31, 2017

Conversation

AllanWang
Copy link
Contributor

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.

@serggl
Copy link
Member

serggl commented Jul 24, 2017

Well, I would actually prefer to document only proguard rules vs bundling them by default

@AllanWang
Copy link
Contributor Author

@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?

@serggl
Copy link
Member

serggl commented Jul 27, 2017

well,maybe Im just too wary about any 'default' proguard usage.
Can you explain how consumerProguardFiles will actually work?

@AllanWang
Copy link
Contributor Author

@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.

@serggl
Copy link
Member

serggl commented Jul 28, 2017

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

@AllanWang
Copy link
Contributor Author

@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

@serggl serggl merged commit d364ab3 into anjlab:master Jul 31, 2017
serggl added a commit that referenced this pull request Aug 7, 2017
Copy link

@Chris011 Chris011 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

showdpro pushed a commit to showdpro/android-inapp-billing-v3 that referenced this pull request Jul 13, 2021
* Add proguard rule

* Change word usage

* Rename proguard file to be library version

* Remove default proguard and only document it

* Add back consumer file
showdpro pushed a commit to showdpro/android-inapp-billing-v3 that referenced this pull request Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants