Skip to content

fix: Dynamic port selection flow on Android - #2636

Closed
piotruela wants to merge 17 commits into
masterfrom
fix/flavors
Closed

fix: Dynamic port selection flow on Android#2636
piotruela wants to merge 17 commits into
masterfrom
fix/flavors

Conversation

@piotruela

@piotruela piotruela commented May 21, 2025

Copy link
Copy Markdown
Collaborator

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

docs-page Bot commented May 21, 2025

Copy link
Copy Markdown

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

@pdenert pdenert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@ahlstro

ahlstro commented May 26, 2025

Copy link
Copy Markdown
Contributor

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

@pdenert

pdenert commented May 27, 2025

Copy link
Copy Markdown
Collaborator

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
@piotruela

Copy link
Copy Markdown
Collaborator Author

Replaced by #3173

@piotruela piotruela closed this Jul 25, 2026
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

3 participants