If you are using CocoaPods, update your Podfile:
pod 'StripeTerminal', '1.0.0'
Changes from 1.0.0-rc2
Reader.simulatedproperty, to tell whether a reader is simulated or not.
Terminal.connectedReaderproperty will now be
nilwhen the SDK calls your
TerminalDelegate.terminal(_:didReportUnexpectedReaderDisconnect:)method. In previous releases, it contained the previously connected
Readerobject. The previously connected reader is still available, as a parameter of this method.
SCPErrorSessionExpiredhas been thrown (see
SCPErrors.hfor more details on when this is thrown) we now call
TerminalDelegate.didReportUnexpectedReaderDisconnectafter a successful auto-disconnect. Note there is a small chance the disconnect fails and this callback will not be called. You can check
Terminal.connectionStatusin your completion block that received the
SCPErrorSessionExpiredto see if your reader is still connected.