Skip to content

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