SIGN IN SIGN UP

fix(samples): Add Retrofit R8 full-mode keep rules to Android sample (#5727)

The Android sample's release build uses R8 full mode, which strips generic signatures from classes that aren't kept. This broke Retrofit call-adapter creation for GithubAPI, crashing SecondActivity in onResume with 'Unable to create call adapter for interface retrofit2.Call'.

Add the standard Retrofit R8 keep rules (Signature attributes, retrofit2.Call/Response, service interfaces) and keep the Repo response model for Gson.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
N
Nelson Osacky committed
61ba1d557461f830dfe2e117465190144ae487c1
Parent: 803fad4
Committed by GitHub <noreply@github.com> on 7/7/2026, 9:06:21 AM