From f155cd5e2a0bbfb8d20e1126ccb466b482673b50 Mon Sep 17 00:00:00 2001 From: Victor Solevic Date: Tue, 22 Sep 2026 17:21:34 +0200 Subject: [PATCH] fix: bump Gson to 2.14.0 to bundle its R8/ProGuard rules Gson versions below 2.11.0 do not ship consumer ProGuard/R8 rules. With R8 full mode (default since AGP 8), the generic signature of the anonymous TypeToken subclass used when decoding a JWT is stripped in minified builds, and constructing a JWT throws "java.lang.RuntimeException: Missing type parameter." at runtime. Gson bundles the required keep rules since 2.11.0, so consuming apps no longer need to add them manually. --- lib/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build.gradle b/lib/build.gradle index 1bc3513..205136f 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -21,7 +21,7 @@ android { dependencies { implementation 'androidx.annotation:annotation:1.1.0' - implementation 'com.google.code.gson:gson:2.8.9' + implementation 'com.google.code.gson:gson:2.14.0' testImplementation 'junit:junit:4.13' testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'