Skip to content

refactor: normalize path values in AppiumServiceBuilder without driver capability names - #2536

Merged
mykola-mokhnach merged 2 commits into
betafrom
arch/p1-service-builder-edge
Dec 4, 2026
Merged

mykola-mokhnach merged 2 commits into
betafrom
arch/p1-service-builder-edge

Conversation

@mykola-mokhnach

@mykola-mokhnach mykola-mokhnach commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Change list

Part of #2513 (Phase 1). Removes the last core -> driver edges: AppiumServiceBuilder imported two Android option mixins only to know the names of path capabilities. The dependency baseline is now empty.

AppiumServiceBuilder#withCapabilities(caps, true) (the deprecated --default-capabilities mode on Windows) turned backslashes into / for 3 capability names: app, chromedriverExecutable and keystorePath. Now it does so for every string value: a raw backslash breaks the JSON that the server parses (unless it forms a valid escape), so the value-based rewrite loses almost nothing, core knows no capability names, and it covers relative paths and the paths of any driver.

The old name match used the unprefixed names, while capabilities built from the options classes carry the appium: prefix, so it only matched hand-written plain names. That is fixed too. The quoting method is now package-private and covered by a unit test (it only runs on Windows otherwise).

The core -> android lines are removed from the dependency baseline, which is now empty (the file must stay empty from here).

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Base automatically changed from arch/p1-core-driver-edges to beta December 4, 2026 22:27
…instead of importing android types

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mykola-mokhnach
mykola-mokhnach force-pushed the arch/p1-service-builder-edge branch from 41a216b to 122a306 Compare December 4, 2026 22:29
…e Windows quoting

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mykola-mokhnach mykola-mokhnach changed the title refactor!: detect path capabilities by value in AppiumServiceBuilder refactor!: normalize path values in AppiumServiceBuilder without driver capability names Dec 4, 2026
@mykola-mokhnach mykola-mokhnach changed the title refactor!: normalize path values in AppiumServiceBuilder without driver capability names refactor: normalize path values in AppiumServiceBuilder without driver capability names Dec 4, 2026
@mykola-mokhnach
mykola-mokhnach merged commit dfa39b2 into beta Dec 4, 2026
14 checks passed
@mykola-mokhnach
mykola-mokhnach deleted the arch/p1-service-builder-edge branch December 4, 2026 22:36
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.

1 participant