Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
cache: true
- run: flutter pub get
- run: dart format --set-exit-if-changed --output=none lib test example/lib example/test
- run: flutter analyze --no-fatal-infos
- run: flutter analyze --fatal-infos
- run: flutter test

go:
Expand Down
2 changes: 1 addition & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ these, so it is cheaper to catch them locally first:
```sh
# Flutter
dart format --set-exit-if-changed --output=none lib test example/lib example/test
flutter analyze --no-fatal-infos
flutter analyze --fatal-infos
flutter test

# Go (from go/)
Expand Down
4 changes: 4 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Demo app uses print() for runtime console feedback during the BitBox flow
// walkthrough. The plugin itself (lib/) must stay print-free.
// ignore_for_file: avoid_print

import 'dart:async';
import 'dart:convert';
import 'dart:ffi';
Expand Down
4 changes: 0 additions & 4 deletions lib/usb/bitbox_usb_method_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ class MethodChannelBitboxUsb extends BitboxUsbPlatform {

@override
Future<bool> open(BitboxDevice usbDevice) async {
print('[bitbox_flutter] open ${usbDevice.productName}');
final open = await methodChannel.invokeMethod<bool>(
'open',
usbDevice.toMap(),
);
print('[bitbox_flutter] open $open');

return open ?? false;
}
Expand All @@ -58,9 +56,7 @@ class MethodChannelBitboxUsb extends BitboxUsbPlatform {

@override
Future<bool> initBitBox() async {
print('[bitbox_flutter] initBitBox');
final result = await methodChannel.invokeMethod<bool>('initBitBox');
print('[bitbox_flutter] initBitBox $result');

return result ?? false;
}
Expand Down
Loading