Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore: Add more UiAutomator2 options#1545

Merged
mykola-mokhnach merged 3 commits intoappium:masterappium/java-client:masterfrom
mykola-mokhnach:more_uia2_capsmykola-mokhnach/java-client:more_uia2_capsCopy head branch name to clipboard
Oct 25, 2021
Merged

chore: Add more UiAutomator2 options#1545
mykola-mokhnach merged 3 commits intoappium:masterappium/java-client:masterfrom
mykola-mokhnach:more_uia2_capsmykola-mokhnach/java-client:more_uia2_capsCopy head branch name to clipboard

Conversation

@mykola-mokhnach
Copy link
Contributor

Change list

Continuing to add UiAutomator2 options.

Types of changes

  • No changes in production code.
  • Bugfix (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)

public interface SupportsIsHeadlessOption<T extends BaseOptions<T>> extends
Capabilities, CanSetCapability<T> {
String IS_HEADLESS_OPTION = "isHeadless";

Copy link
Collaborator

Choose a reason for hiding this comment

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

does it make sense to add a method:

default T headless() {
    return setIsHeadless(true);
}

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

public interface SupportsGpsEnabledOption<T extends BaseOptions<T>> extends
Capabilities, CanSetCapability<T> {
String GPS_ENABLED_OPTION = "gpsEnabled";

Copy link
Collaborator

Choose a reason for hiding this comment

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

does it make sense to add a method:

default T gpsEnabled() {
    return setGpsEnabled(true);
}

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@mykola-mokhnach mykola-mokhnach merged commit 093720f into appium:master Oct 25, 2021
@mykola-mokhnach mykola-mokhnach deleted the more_uia2_caps branch October 25, 2021 15:11
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.