Skip to content

Fix pollingGetDevices signature to match Flutter 3.41.x#88

Merged
ardera merged 1 commit intoardera:feat/3.41from
miguelzapp:fix/polling-get-devices-signature
Apr 6, 2026
Merged

Fix pollingGetDevices signature to match Flutter 3.41.x#88
ardera merged 1 commit intoardera:feat/3.41from
miguelzapp:fix/polling-get-devices-signature

Conversation

@miguelzapp
Copy link
Copy Markdown
Contributor

Add missing forWirelessDiscovery named parameter to FlutterpiSshDeviceDiscovery.pollingGetDevices to match the updated PollingDeviceDiscovery base class in Flutter >= 3.41.1.

Fixes #87

Add missing `forWirelessDiscovery` named parameter to
`FlutterpiSshDeviceDiscovery.pollingGetDevices` to match the
updated `PollingDeviceDiscovery` base class in Flutter >= 3.41.1.

Fixes ardera#87
cbenhagen added a commit to cbenhagen/flutterpi_tool that referenced this pull request Feb 21, 2026
Flutter 3.41.x added a `forWirelessDiscovery` named parameter to
`PollingDeviceDiscovery.pollingGetDevices`. Add it to the override
to fix compilation.

Cherry-picked from ardera#88.
@KickNext
Copy link
Copy Markdown

We verified this on Flutter 3.41.5 (stable, Dart 3.11.3) in a real flutterpi_tool build flow.

The pollingGetDevices signature fix is indeed required there.

One additional detail we hit: after updating to the new Flutter tools API, the test harness also needs a small compatibility fix, otherwise flutter analyze / flutter test still fail because DeviceManager now also requires stopExtendedWirelessDeviceDiscoverers().

In our local validation, adding a no-op implementation to test/src/fake_device_manager.dart was enough:

@Override
void stopExtendedWirelessDeviceDiscoverers() {}

So from our side:

  • runtime/API fix in this PR: confirmed needed
  • one extra test-only compatibility fix is still useful if the goal is clean analysis/tests on Flutter 3.41.x

@ardera ardera changed the base branch from main to feat/3.41 April 6, 2026 11:40
@ardera ardera merged commit 22efddb into ardera:feat/3.41 Apr 6, 2026
@ardera
Copy link
Copy Markdown
Owner

ardera commented Apr 6, 2026

Thanks! Sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package activation compilation fails on Flutter v3.41.1

3 participants