Skip to content

Conversation

@piotruela
Copy link
Collaborator

@piotruela piotruela commented May 21, 2025

Fixes reported bugs on dynamic port selection solution.

  • NativeAutomator gets the test server port from within the constructor. Because of that, NativeAutomatorConfig.port was deprecated. It should not be possible to manually set the port value.
  • Added --debug flag to flutter build --config-only invocation to prevent PatrolPlugin being removed from the app code.

Also fixes #2614.

@docs-page
Copy link

docs-page bot commented May 21, 2025

To view this pull requests documentation preview, visit the following URL:

docs.page/leancodepl/patrol~2636

Documentation is deployed and generated using docs.page.

@github-actions github-actions bot added package: patrol_cli Related to the patrol_cli package cirrusci Mark a PR with this label to run CirrusCI on it package: patrol Related to the patrol package (native automation, test bundling) labels May 21, 2025
Copy link
Collaborator

@pdenert pdenert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ahlstro
Copy link
Contributor

ahlstro commented May 26, 2025

Hi, would be awesome if this PR can be completed :) Atm we cannot run the tests with latest flutter in our pipeline

@pdenert
Copy link
Collaborator

pdenert commented May 27, 2025

Hi, would be awesome if this PR can be completed :) Atm we cannot run the tests with latest flutter in our pipeline

This was already published in patrol_cli: 3.6.0: https://pub.dev/packages/patrol_cli/changelog#360.
It was announced in the linked issue: #2614 (comment)

@piotruela piotruela changed the title fix: Do not pass flavor as dart-define when building fix: Dynamic port selection flow on Android Jun 12, 2025
@github-actions github-actions bot added the docs Concerns doc comments, READMEs, or docs label Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cirrusci Mark a PR with this label to run CirrusCI on it docs Concerns doc comments, READMEs, or docs package: patrol_cli Related to the patrol_cli package package: patrol Related to the patrol package (native automation, test bundling)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FLUTTER_APP_FLAVOR is used by the framework and cannot be set using --dart-define or --dart-define-from-file

4 participants