diff --git a/android/src/main/java/id/animo/mdocdatatransfer/MdocDataTransferModule.kt b/android/src/main/java/id/animo/mdocdatatransfer/MdocDataTransferModule.kt index dc65851..587ec1d 100644 --- a/android/src/main/java/id/animo/mdocdatatransfer/MdocDataTransferModule.kt +++ b/android/src/main/java/id/animo/mdocdatatransfer/MdocDataTransferModule.kt @@ -42,7 +42,6 @@ class MdocDataTransferModule : Module() { Log.d("ABBA", "cheese") mDocDataTransfer?.apply { onQrEngagementReady = { qrCode -> - Log.d("ABBA", "${qrCode}") promise.resolve(qrCode) onQrEngagementReady = null } @@ -52,7 +51,7 @@ class MdocDataTransferModule : Module() { Function("sendDeviceResponse") { deviceResponse: String -> (mDocDataTransfer ?: throw MdocDataTransferException.NotInitialized()).respond( - deviceResponse.split(":").map { it.toByte() }.toByteArray() + deviceResponse.split(":").map { it.toUInt().toByte() }.toByteArray() ) }