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 for keeping generic signature of return types #3886

Merged
merged 2 commits into from
May 5, 2023

Conversation

mkj-gram
Copy link
Contributor

@mkj-gram mkj-gram commented May 2, 2023

The additional rule generalises keeping the generic signature of return type of service methods. The rule effectively fixes an issue with RxJava3 Observables as reported in b/280277628.

@JakeWharton
Copy link
Collaborator

I suspect this means we can delete https://github.com/square/retrofit/blob/master/retrofit-adapters/rxjava3/src/main/resources/META-INF/proguard/retrofit2-rxjava3-adapter.pro and the others whose goal was to mitigate this. I'll do that and merge tomorrow.

@JakeWharton
Copy link
Collaborator

Based on the linked bug, the rules which were already embedded in the adapters should have kept the signature.

Regardless, your rule is superior since it covers all potential return values instead of us having to remember to include it for every type.

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.

2 participants