-
Notifications
You must be signed in to change notification settings - Fork 698
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
Tighten keep rule #1494
Comments
I recommend using conditional keep-rules. These can be triggered based on the inclusion of specific annotations in the app's code base. |
From Unofficial R8 documentation:
eg.
In the example above, users who want to keep the GoogleUtils only need to include the |
If you can segment parts of the library that can be kept seprately, then you can create several different annotation. For example, if your library has a Payments section and a Mapping section and a Messaging section, and the code can be cleanly separated by package name or class names, then you could have annotations like The keep rules that ship with the library should represent the segments. eg.
|
See #1491
@justcla suggests we can tighten this rule so the class is not always retained.
The text was updated successfully, but these errors were encountered: