From 3727d768109b52d7c813a4f4e87e2981a54e9681 Mon Sep 17 00:00:00 2001 From: Suyash Mittal Date: Sun, 12 May 2024 16:56:45 +0530 Subject: [PATCH] add proguard rules for gson --- app/build.gradle.kts | 4 ++-- app/proguard-rules.pro | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 9ca8f30..94b4975 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -15,8 +15,8 @@ android { applicationId = "com.suyash.creditmanager" minSdk = 26 targetSdk = 34 - versionCode = 15 - versionName = "1.0.14" + versionCode = 16 + versionName = "1.0.15" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 9bea593..302c538 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -26,4 +26,8 @@ } -keepclassmembers enum * { @com.google.gson.annotations.SerializedName ; -} \ No newline at end of file +} + +-keepattributes Signature +-keep class com.google.gson.reflect.TypeToken { *; } +-keep class * extends com.google.gson.reflect.TypeToken \ No newline at end of file