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 keep rule to retain generic signature of Call #3579

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

christofferqa
Copy link
Contributor

@christofferqa christofferqa commented Jun 22, 2021

R8 version 3.0 started to remove generic signatures from items that are not matched by a -keep rule in full mode (see also https://r8.googlesource.com/r8/+/744d742137a82656b8ee27513f975e0528aecd78). The motivation for this change is to avoid that all generic signatures are retained in programs, when only a few are typically required for reflection.

This change adds a rule that causes the generic signature of retrofit2.Call to be retained.

Related resources:

Closes #3580

@JakeWharton
Copy link
Collaborator

Thank you!

mkj-gram added a commit to mkj-gram/retrofit that referenced this pull request Jul 13, 2021
Add keep rule to retain generic signature of Call
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.

Inadequate keep rules with R8 full mode version 3.0
2 participants