From baae8c21c686c6e30aa47bbf924a7507533dab25 Mon Sep 17 00:00:00 2001 From: Pranav VI <110378159+PranavShahSI@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:04:46 +0530 Subject: [PATCH 1/2] update response model for multiple key --- app/src/main/AndroidManifest.xml | 2 +- .../src/main/java/com/sit/common/model/ResponseModel.kt | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 833d67c..b820cd3 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -4,7 +4,7 @@ ( - @SerializedName("data") - val `data`: T, - val message: String, - @SerializedName("success") - val success: Boolean, + @SerializedName(value = "data", alternate = ["Data"]) val `data`: T, + @SerializedName(value = "message", alternate = ["Message"]) val message: String, + @SerializedName(value = "success", alternate = ["Success"]) val success: Boolean, ) \ No newline at end of file From d85de29d49ec862081f13d5ff3c43afc3cc4307d Mon Sep 17 00:00:00 2001 From: Pranav VI <110378159+PranavShahSI@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:06:12 +0530 Subject: [PATCH 2/2] minor change --- README.md | 2 +- sit-common/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81735e0..afb3448 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add the dependency ``` dependencies { - implementation 'com.github.vivekpshaligram:sit-common:2.0.0' + implementation 'com.github.vivekpshaligram:sit-common:2.0.3' } ``` diff --git a/sit-common/build.gradle.kts b/sit-common/build.gradle.kts index 71238f2..2129f2b 100644 --- a/sit-common/build.gradle.kts +++ b/sit-common/build.gradle.kts @@ -73,7 +73,7 @@ afterEvaluate { from (components["release"]) groupId = "com.github.sit" artifactId = "android-common" - version = "2.0.2" + version = "2.0.3" } } }