From 7bf5acb6117ce379ce7f30f8e1c2deddd636fc89 Mon Sep 17 00:00:00 2001 From: Rahul Patel Date: Sat, 13 Jul 2024 21:46:19 +0530 Subject: [PATCH] Update Proguard: Do NOT obfuscate ViewBinding bases --- app/proguard-rules.pro | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 1be34d425..97e74ce02 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -109,3 +109,14 @@ # Keep Parcelable classes -keep @kotlinx.parcelize.Parcelize public class * + +# Keep the view binding classes and their methods +-keepclassmembers class ** implements androidx.viewbinding.ViewBinding { + public static *** inflate(...); +} + +# Keep generic superclass information +-keepattributes Signature +-keep class * extends androidx.viewbinding.ViewBinding { + *; +}