ledger_flutter_plus 1.6.3
ledger_flutter_plus: ^1.6.3 copied to clipboard
A Flutter plugin to scan, connect & sign transactions using your Ledger Nano devices
1.6.3 #
- Fixed a BLE request waiting for its response forever when the device disconnects or
disconnect()is called. The waiting request now fails withConnectionLostException, and requests still queued on the connection fail withDeviceNotConnectedException. Connect again to get a new session - Fixed BLE responses longer than 255 bytes: the frame header's packet index and response length are now read as 16-bit values
- Fixed
LedgerSimpleOperationthrowingLateInitializationErrorwhendebugPrintEnabledis on - Fixed errors thrown while reading a USB response bypassing the
PlatformExceptionhandling
1.6.2 #
- Fixed Bluetooth on web for Ledger Flex, Stax and Nano Gen5: web scan results have no advertised services, so the device was treated as a Nano X and connecting failed with "Required service not supported". The device type now comes from the services discovered on connect
1.6.1 #
- Fixed an uncaught error when the device answers a BLE request early (e.g. wrong app open, device locked) before all packets are written (the error is still returned to the caller)
- Fixed a BLE request whose write failed staying pending and swallowing the response of the next request
- Fixed a BLE response completing the wrong pending request, or completing the same request twice (uncaught
StateError), when notifications overlap - Scan errors (e.g. Bluetooth turned off) are now emitted on the scan devices stream instead of being uncaught
- Errors from stopping the scan when the scan stream is cancelled are no longer reported as uncaught
1.6.0+1 #
- Updated changelog
1.6.0 #
- Added support for Ledger Nano Gen5
- Updated universal_ble to ^2.0.0
1.5.6 #
- Updated universal_ble to ^1.1.0
1.5.5 #
- Updated universal_ble to ^0.21.1
1.5.4 #
- Updated universal_ble to ^0.20.1
- Setup linter and fixed all lint warnings
1.5.3 #
- Added support for universal_ble >=0.15.0 <0.18.0
1.5.2 #
- Added support for universal_ble >=0.15.0 <0.17.0
1.5.1 #
- Updated universal_ble to ^0.15.0
1.5.0 #
- Updated universal_ble to 0.14.0
- Added handling for multiple ledger device connected in parallel
Breaking Change #
deviceStateChangedis now a function (previously property) which requires the deviceId to be passed so that only relevant events are sent through the stream
1.4.1 #
- Reverted universal_ble to 0.12.0 because 0.13.0 does not seem to connect at all on iOS
1.4.0 #
- Updated universal_ble package to latest version
1.3.0 #
-
Improved BLE reliability
-
Checking device connectivity state during [connect] call to avoid re-attempting BLE connection to already connected device
-
Requests are now serialized to prevent issues caused by race conditions (they were very common for unawaited requests)
-
Added reusable
LedgerSimpleOperationencapsulating the standard structure of ledger requests -
Added
LedgerComplexOperationfor requests that require multiple (and possibly conditional) chunks of data to be sent as part of a single transaction flow
Breaking Change #
- [ConnectionTimeoutException] is now [EstablishConnectionException] which contains a nested exception for the failure reason
NOTE #
It is strongly recommended to extend LedgerComplexOperation for transactions requiring multiple chunks of data to be sent because it uses an internal
queue to serialize each chunk and make sure:
- order is maintained
- no other (differnt) operation will send any data/request to Ledger before current transaction is completed
1.2.5 #
- Improved BLE device type detection (thanks to @konstantinullrich)
1.2.4 #
- Improved error reporting
- Added support and detection for all ledger devices (thanks to @konstantinullrich)
- Removed a pointless
disconnectcall which was causing PlatformException (thanks to @konstantinullrich)
1.2.3 #
- Fix connection bug (spotted on Android)
1.2.2 #
- Added explicit BLE pair check and pair request if not paired
1.2.1 #
- Fixed
ConcurrentModificationErrorthrown when trying to connect device
1.2.0 #
- Updated major universal_ble version
1.1.1 #
- Fixed BLE Manager dispose (previously not disconnecting ledger device on dispose)
1.1.0 #
- Updated universal_ble and ledger_usb_plus versions
- Fixed merging of partial BLE responses of max 20 bytes (observed on some android devices)
1.0.11 #
- Made LedgerDevice constructor public
1.0.10 #
- Improved BLE handling for scanning / stopping scanning
- Exported a few more classes
1.0.9 #
- [Fix from 1.0.8] Small internal changes to expose some classes via
ledger_flutter_plus_dart.dart(no flutter imports)
1.0.8 #
- Small internal changes to expose some classes via
ledger_flutter_plus_dart.dart(no flutter imports)
1.0.6 #
Breaking Changes #
- Removed some optional LedgerOptions that could be passed for connect/scan
- Renamed
LedgerOptionstoBluetoothOptions - Removed possibility to pass
mtuoption
1.0.5 #
- Improved disposal management
1.0.4 #
- Some internal cleanup and changes to return correct LedgerDevice object (including name/etc)
Breaking Change #
- Changed
disconnectdo be done by deviceId instead ofLedgerDeviceobject
1.0.3 #
- Added connection lost error
BREAKING #
- Instantiate from now on using LedgerInterface.usb and LedgerInterface.ble
1.0.2 #
- Added WEB support for both usb and ble
1.0.1 #
- Changed package name
1.0.0 #
- Initial release.