Skip to content

refactor: keep drivers and plugins off the internal package - #2533

Merged
mykola-mokhnach merged 2 commits into
betafrom
arch/p1-internal-guardrail-pr
Dec 4, 2026
Merged

mykola-mokhnach merged 2 commits into
betafrom
arch/p1-internal-guardrail-pr

Conversation

@mykola-mokhnach

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

Copy link
Copy Markdown
Contributor

Change list

Part of #2513 (Phase 1). After #2532, the only internal types that driver and plugin code still imports are the trivial Preconditions and Strings helpers (7 call sites). This removes them and adds a guardrail so it stays that way.

  • android (Activity, the appmanagement options) and plugins.images (ImagesOptions, FeaturesMatchingOptions) throw IllegalArgumentException directly instead of checkArgument. The checks and messages are unchanged; FeaturesMatchingOptions#withGoodMatchesFactor now has a message (it had none).
  • New InternalApiGuardrailTest: classes in driver packages and plugins.* must not depend on io.appium.java_client.internal (bytecode plus source imports). There is no baseline, the rule holds from now on.

Preconditions and Strings stay in internal, still used by core.

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)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ternal guardrail

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mykola-mokhnach
mykola-mokhnach merged commit 96aa47b into beta Dec 4, 2026
12 checks passed
@mykola-mokhnach
mykola-mokhnach deleted the arch/p1-internal-guardrail-pr branch December 4, 2026 22:18
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