From 4327a1b36cc81d618a13b9db8c8d94726c35ad8b Mon Sep 17 00:00:00 2001 From: Joshua Wellbrock Date: Wed, 18 Dec 2024 09:00:45 +0100 Subject: [PATCH 1/2] fix: format_utils.dart export, Readme reference --- README.md | 4 ++-- lib/mtrust_imp_kit.dart | 2 ++ lib/src/imp_reader.dart | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ce5b9dd..602af64 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,10 @@ Add the ble connection strategy to your project by including it in your `pubspec dependencies: mtrust_imp_kit: ˆ1.0.0 # Add the BLE connection strategy - urp_ble_strategy: ˆ8.0.1 + mtrust_urp_ble_strategy: ˆ8.0.1 ``` -Please follow the instructions for configuring BLE for your respective platform in the [README](https://github.com/emdgroup/mtrust-urp/blob/main/mtrust_urp_ble_strategy/README.md) of the `urp_ble_strategy`! +Please follow the instructions for configuring BLE for your respective platform in the [README](https://github.com/emdgroup/mtrust-urp/blob/main/mtrust_urp_ble_strategy/README.md) of the `mtrust_urp_ble_strategy`! ## Usage diff --git a/lib/mtrust_imp_kit.dart b/lib/mtrust_imp_kit.dart index a86b3d6..03872c1 100644 --- a/lib/mtrust_imp_kit.dart +++ b/lib/mtrust_imp_kit.dart @@ -12,3 +12,5 @@ export 'package:mtrust_imp_kit/src/imp_reader.dart'; export 'package:mtrust_imp_kit/src/ui/scanning_instruction.dart'; export 'package:mtrust_urp_types/imp.pb.dart'; + +export 'package:mtrust_imp_kit/src/format_utils.dart'; diff --git a/lib/src/imp_reader.dart b/lib/src/imp_reader.dart index 7bdf677..d06e4c7 100644 --- a/lib/src/imp_reader.dart +++ b/lib/src/imp_reader.dart @@ -37,12 +37,12 @@ class ImpReader extends CmdWrapper { ConnectionStrategy strategy, { String? deviceAddress, }) async { - final connceted = await strategy.findAndConnectDevice( + final connected = await strategy.findAndConnectDevice( readerTypes: {UrpDeviceType.urpImp}, deviceAddress: deviceAddress, ); - if (!connceted) { + if (!connected) { throw ImpReaderException(message: 'Failed to connect to reader'); } From eaa77a6187663fd0f84a26e8d911fd11336ecf6d Mon Sep 17 00:00:00 2001 From: Joshua Wellbrock Date: Wed, 18 Dec 2024 09:07:53 +0100 Subject: [PATCH 2/2] chore: remove unnecessary import --- test/imp_widget_test.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/test/imp_widget_test.dart b/test/imp_widget_test.dart index 05a11e0..824d46b 100644 --- a/test/imp_widget_test.dart +++ b/test/imp_widget_test.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:golden_toolkit/golden_toolkit.dart'; import 'package:mtrust_imp_kit/mtrust_imp_kit.dart'; -import 'package:mtrust_imp_kit/src/format_utils.dart'; import 'golden_utils.dart'; import 'test_utils.dart';