Skip to content

tvos support#911

Merged
KazuCocoa merged 13 commits intoappium:masterfrom
KazuCocoa:km/tvos
Mar 30, 2019
Merged

tvos support#911
KazuCocoa merged 13 commits intoappium:masterfrom
KazuCocoa:km/tvos

Conversation

@KazuCocoa
Copy link
Copy Markdown
Member

@KazuCocoa KazuCocoa commented Mar 28, 2019

  • Update WDA
  • Add tvOS platform
    • An ability to build with tvOS scheme
    • xctestrunFile cap for tvOS

On appium/appium#12401 , I've attached an animation-gif of action for tvOS via Ruby client.

@KazuCocoa KazuCocoa mentioned this pull request Mar 28, 2019
9 tasks
Comment thread lib/wda/utils.js Outdated
Comment thread lib/wda/utils.js Outdated
Comment thread lib/wda/utils.js Outdated
Comment thread lib/wda/utils.js Outdated
Comment thread lib/wda/utils.js Outdated
Comment thread lib/wda/utils.js Outdated
Comment thread lib/wda/xcodebuild.js Outdated
Comment thread lib/wda/xcodebuild.js Outdated
Comment thread lib/wda/xcodebuild.js Outdated
Comment thread lib/wda/xcodebuild.js Outdated
Comment thread lib/wda/utils.js Outdated
Comment thread test/unit/wda/utils-specs.js Outdated
Comment thread lib/wda/xcodebuild.js Outdated
Comment thread lib/wda/xcodebuild.js Outdated

async cleanProject () {
for (const scheme of [LIB_SCHEME, RUNNER_SCHEME]) {
const libScheme = _.toLower(this.platformName) === _.toLower(PLATFORM_NAME_TVOS) ? LIB_SCHEME_TV : LIB_SCHEME_IOS;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perhaps this equality check could be in a helper function (e.g., isTvOS) since it happens again and again, which might be able to be memoized.

Alternatively, it could be in a function like getSchemes

getSchemes () {
  const isTvOS = _.toLower(this.platformName) === _.toLower(PLATFORM_NAME_TVOS);
  const libScheme = isTvOS ? LIB_SCHEME_TV : LIB_SCHEME_IOS;
  const runnerScheme = isTvOS ? RUNNER_SCHEME_TV : RUNNER_SCHEME_IOS;
  return {
    libScheme,
    runnerScheme,
  };
}

Comment thread lib/utils.js Outdated
Comment thread lib/wda/utils.js Outdated
Comment thread lib/wda/utils.js Outdated
* Return the WDA object which appends existing xctest runner content
* @param {string} platformName - The name of platform
* @param {string} version - The Xcode SDK version of OS.
* @return {object} returns an runner object which has USE_PORT
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

a runner object

Comment thread lib/wda/utils.js Outdated

/**
* Return the WDA object which appends existing xctest runner content
* @param {string} platformName - The name of platform
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

of the platform

Comment thread lib/utils.js Outdated

/**
* Return true if the platformName is tvOS
* @param {string} platformName The name of platorm
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

of the platform

@mykola-mokhnach
Copy link
Copy Markdown
Contributor

mykola-mokhnach commented Mar 29, 2019

LGTM, just need to wait for the tests to pass

@KazuCocoa
Copy link
Copy Markdown
Member Author

thanks for hard review for tvOS support!

@KazuCocoa KazuCocoa merged commit 5e1ef57 into appium:master Mar 30, 2019
khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
* consider tvos

* fix tvos support

* override desiredCapConstraints

* add name of arguments in docstring, tweak const name for ios

* bump WDA

* remove memorized, use [] style to add a object key
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