diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8a96611..360d707 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 = 13 - versionName = "1.0.12" + versionCode = 14 + versionName = "1.0.13" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb43..9bea593 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,12 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile + +-dontnote com.google.gson.annotations.SerializedName +-keepclasseswithmembers,allowobfuscation,includedescriptorclasses class * { + @com.google.gson.annotations.SerializedName ; +} +-keepclassmembers enum * { + @com.google.gson.annotations.SerializedName ; +} \ No newline at end of file diff --git a/app/src/main/java/com/suyash/creditmanager/domain/util/CardType.kt b/app/src/main/java/com/suyash/creditmanager/domain/util/CardType.kt index fb8dd43..b2abe2d 100644 --- a/app/src/main/java/com/suyash/creditmanager/domain/util/CardType.kt +++ b/app/src/main/java/com/suyash/creditmanager/domain/util/CardType.kt @@ -1,13 +1,21 @@ package com.suyash.creditmanager.domain.util +import com.google.gson.annotations.SerializedName import com.suyash.creditmanager.R enum class CardType(val id: Int) { + @SerializedName("VISA") VISA(R.drawable.visa_icon), + @SerializedName("MASTERCARD") MASTERCARD(R.drawable.mastercard_icon), + @SerializedName("AMEX") AMEX(R.drawable.amex_icon), + @SerializedName("DISCOVER") DISCOVER(R.drawable.discover_icon), + @SerializedName("DCI") DCI(R.drawable.dci_icon), + @SerializedName("JCB") JCB(R.drawable.jcb_icon), + @SerializedName("RUPAY") RUPAY(R.drawable.rupay_icon); } diff --git a/app/src/main/java/com/suyash/creditmanager/domain/util/TransactionType.kt b/app/src/main/java/com/suyash/creditmanager/domain/util/TransactionType.kt index 29612cb..73bb426 100644 --- a/app/src/main/java/com/suyash/creditmanager/domain/util/TransactionType.kt +++ b/app/src/main/java/com/suyash/creditmanager/domain/util/TransactionType.kt @@ -1,6 +1,10 @@ package com.suyash.creditmanager.domain.util +import com.google.gson.annotations.SerializedName + enum class TransactionType { + @SerializedName("DEBIT") DEBIT, + @SerializedName("CREDIT") CREDIT } \ No newline at end of file