diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 9603939..0f268be 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -2,9 +2,9 @@ name: Build Test App on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -33,13 +33,13 @@ jobs: cpu: pi4 steps: - uses: actions/checkout@v4 - + - uses: subosito/flutter-action@v2 with: cache: true channel: stable - flutter-version: 3.38.4 - + flutter-version: 3.41.0 + - name: Install dependencies & Activate as global executable run: | flutter pub get @@ -60,7 +60,7 @@ jobs: echo '::group::flutterpi_tool build ... --debug' flutterpi_tool build --arch=${{ matrix.arch }} --cpu=${{ matrix.cpu }} --debug --debug-symbols --verbose echo '::endgroup::' - + echo '::group::flutterpi_tool build ... --profile' flutterpi_tool build --arch=${{ matrix.arch }} --cpu=${{ matrix.cpu }} --profile --debug-symbols --verbose echo '::endgroup::' diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index cabccc1..d9779b5 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -7,9 +7,9 @@ name: Flutter on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -21,16 +21,16 @@ jobs: GITHUB_TOKEN: ${{ secrets.TOKEN }} steps: - uses: actions/checkout@v4 - + - uses: subosito/flutter-action@v2 with: cache: true channel: stable - flutter-version: 3.38.4 - + flutter-version: 3.41.0 + - name: Install dependencies run: flutter pub get - + - name: Verify formatting run: dart format --output=none --set-exit-if-changed . diff --git a/lib/src/devices/flutterpi_ssh/device_discovery.dart b/lib/src/devices/flutterpi_ssh/device_discovery.dart index 1fd78f7..c442beb 100644 --- a/lib/src/devices/flutterpi_ssh/device_discovery.dart +++ b/lib/src/devices/flutterpi_ssh/device_discovery.dart @@ -53,7 +53,10 @@ class FlutterpiSshDeviceDiscovery extends PollingDeviceDiscovery { } @override - Future> pollingGetDevices({Duration? timeout}) async { + Future> pollingGetDevices({ + Duration? timeout, + bool forWirelessDiscovery = false, + }) async { timeout ??= Duration(seconds: 5); final entries = config.getDevices(); diff --git a/test/src/fake_device_manager.dart b/test/src/fake_device_manager.dart index 8dd7172..c675b15 100644 --- a/test/src/fake_device_manager.dart +++ b/test/src/fake_device_manager.dart @@ -94,6 +94,9 @@ class FakeDeviceManager implements fl.DeviceManager { @override fl.Device? getSingleEphemeralDevice(List devices) => null; + + @override + void stopExtendedWirelessDeviceDiscoverers() {} } class FakeFilter extends Fake implements fl.DeviceDiscoverySupportFilter {