-
-
Notifications
You must be signed in to change notification settings - Fork 474
add proguard rules for Android #654
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
Conversation
If you prefer, you can add a consumer-rules.pro file , but it's overkill in my opinion |
Can you explain what errors this change is fixing for you and what the |
Also: any comments from @markusfisch and @benjohnde ? |
👍 for enabling minification (even in the sample). Most real-world apps will choose to enable this anyway. I would prefer adding this line to proguard-rules.pro since the file's already there:
And maybe add a note about this in the README just like I did here. On the other hand, using the `@Keep' annotation has the advantage that a client doesn't have to think about the proguard file, which is probably a bit less error-prone. |
@markusfisch |
if each library I used could provide a consumer-rules, it will be very much easier to enable minification 😅 |
Yes, I agree 👍 Using the proguard file for this would just be a little less clutter, but it's probably totally be worth it in this case.
I know exactly what you mean 😉 |
So you both agree that |
No, we both agree that the The alternative, from my point of view, would be to add the mentioned line to the already existing |
Just to be clear: my interpretation of your discussion that the |
No, using a But then we probably shouldn't enable So, in my opinion, we should either use the |
I've just added #660 if you would like to go with the |
To make my confusion complete: now you both seem to agree that #660 is the best choice after all? ;-) |
Sorry for the confusion 🙈 To sum it up: This PR:
I would prefer #660 but would be fine with this PR too. |
Superseded by #660 |
When I activate ProGuard on my project, I have some errors. This PR add rules to avoid them.