Skip to content

Commit

Permalink
add proguard rules for gson
Browse files Browse the repository at this point in the history
  • Loading branch information
suyash01 committed May 12, 2024
1 parent fa904ed commit 3727d76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 5 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@
}
-keepclassmembers enum * {
@com.google.gson.annotations.SerializedName <fields>;
}
}

-keepattributes Signature
-keep class com.google.gson.reflect.TypeToken { *; }
-keep class * extends com.google.gson.reflect.TypeToken

0 comments on commit 3727d76

Please sign in to comment.