diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d90dd9..690a48f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The changes documented here do not include those from the original repository. +## [1.1.2] + +### 21-05-2024 +- Fix: Adds serializable annotation to avoid problems with code obfuscation (https://outsystemsrd.atlassian.net/browse/RMET-3394). + ## [1.1.1] ### 30-04-2024 diff --git a/build.gradle b/build.gradle index 7afca49..1c8922e 100644 --- a/build.gradle +++ b/build.gradle @@ -121,6 +121,7 @@ dependencies { implementation 'androidx.camera:camera-core:1.0.0' implementation 'com.google.zxing:core:3.4.1' implementation 'com.google.mlkit:barcode-scanning:17.2.0' + implementation 'com.google.code.gson:gson:2.10.1' testImplementation "org.mockito:mockito-core:4.3.0" testImplementation 'org.mockito:mockito-inline:4.3.0' diff --git a/pom.xml b/pom.xml index c1b4b98..d6ccf5a 100644 --- a/pom.xml +++ b/pom.xml @@ -7,5 +7,5 @@ 4.0.0 com.github.outsystems osbarcode-android - 1.1.1 + 1.1.2 diff --git a/src/main/kotlin/com/outsystems/plugins/barcode/model/OSBARCScanParameters.kt b/src/main/kotlin/com/outsystems/plugins/barcode/model/OSBARCScanParameters.kt index 3219f0b..502efb2 100644 --- a/src/main/kotlin/com/outsystems/plugins/barcode/model/OSBARCScanParameters.kt +++ b/src/main/kotlin/com/outsystems/plugins/barcode/model/OSBARCScanParameters.kt @@ -1,16 +1,17 @@ package com.outsystems.plugins.barcode.model import java.io.Serializable +import com.google.gson.annotations.SerializedName /** * Data class that represents the object with the scan parameters. */ data class OSBARCScanParameters( - val scanInstructions: String?, - val cameraDirection: Int?, - val scanOrientation: Int?, - val scanButton: Boolean, - val scanText: String, - val hint: Int?, - val androidScanningLibrary: String? + @SerializedName("scanInstructions") val scanInstructions: String?, + @SerializedName("cameraDirection") val cameraDirection: Int?, + @SerializedName("scanOrientation") val scanOrientation: Int?, + @SerializedName("scanButton") val scanButton: Boolean, + @SerializedName("scanText") val scanText: String, + @SerializedName("hint") val hint: Int?, + @SerializedName("androidScanningLibrary") val androidScanningLibrary: String? ) : Serializable \ No newline at end of file