Skip to content

Commit

Permalink
Merge pull request #8 from emdgroup/fix_missing_export
Browse files Browse the repository at this point in the history
fix: missing export
  • Loading branch information
JoshuaWell authored Dec 18, 2024
2 parents 7a049d7 + eaa77a6 commit d9a6c27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/mtrust_imp_kit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
4 changes: 2 additions & 2 deletions lib/src/imp_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
1 change: 0 additions & 1 deletion test/imp_widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit d9a6c27

Please sign in to comment.