Skip to content

Add keep rule to retain generic signature of Call - #3579

Merged
JakeWharton merged 1 commit into
lysine-dev:masterfrom
christofferqa:update_keep_rules
Jun 24, 2021
Merged

JakeWharton merged 1 commit into
lysine-dev:masterfrom
christofferqa:update_keep_rules

Conversation

@christofferqa

@christofferqa christofferqa commented Jun 22, 2021 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

Inadequate keep rules with R8 full mode version 3.0

2 participants