Fixed and bug where in some cases of disconnection of readers the SDK would hang. Now, in case of disconnection, a ConnectionError is returned .
Mapped new exceptions:
SDKFunctionWasConsumedException is thrown when calling more than once a method on the same instance of a SDKTransactionState
SDKTransactionAbortedException is thrown when interacting in any way with a SDKTransactionIntent after is was aborted
SDKConfigurationAbortedException is thrown when interacting in any way with a SDKReaderConfigurator after is was aborted
SDKCannotAbortException is thrown when trying to abort a SDKTransactionIntent when it cannot be aborted (after confirming or while it is being connected) .
Mapped onReturnReversalData method with IMagicPosService.Listener in MagicPosServiceAdapter. If the transaction is aborted this method is called.
SDKDeviceScanService was fixed. Observer is removed when stopScanning is called.
In SDKTransactionIntentImpl and SDKReaderConfiguratorImpl classes, exception handling was modified so that the try-catch block is only used when invoking the asSdkReaderState and asSdkTransactionState functions. When an exception is generated, an abort is performed.