Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PA-99 Fixed app failing to launch on BlueSky #102

Merged
merged 1 commit into from
May 24, 2019

Conversation

simongranger
Copy link
Contributor

No description provided.

@simongranger simongranger force-pushed the PA-99 branch 3 times, most recently from eea4239 to 592020c Compare May 23, 2019 19:03
Copy link
Contributor

@nickwangyoui nickwangyoui left a comment

Choose a reason for hiding this comment

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

Small adjustments, but just code style

@@ -15,12 +15,12 @@ class BaseDevice {
logger.errorAndThrow(msg);
}

installApp (appPath) {
installApp (appPath) { // eslint-disable-line no-unused-vars
let msg = `installApp is not supported on this platform`;
logger.errorAndThrow(msg);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can use logger.errorAndThrow('ErrorMessage') instead of using a variable.

let msg = `installApp is not supported on this platform`;
logger.errorAndThrow(msg);
}

isAppInstalled (channelId) {
isAppInstalled (channelId) { // eslint-disable-line no-unused-vars
let msg = `isAppInstalled is not supported on this platform`;
logger.errorAndThrow(msg);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same for the rest

break;
case "yitvos":
case "yitvos": {
let shell = require('shelljs');
if (shell.exec(`instruments -s devices | grep '${caps.udid}'`).includes('(Simulator)')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be one line, doesnt really matter.
if (shell.exec(instruments -s devices | grep '${caps.udid}').includes('(Simulator)')) this.device = . new TvOsSimulator();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

expected bracket after if statement

lib/driver.js Outdated
case "noproxy":
case "connecttoapp":
break;
default:
default: {
let msg = `Unsupported platformName: ${caps.platformName}`;
logger.errorAndThrow(msg);
Copy link
Contributor

Choose a reason for hiding this comment

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

same with single line
default:
logger.errorAndThrow(Unsupported platformName: ${caps.platformName});

(no braces needed because there's no var declaration.)

@simongranger simongranger force-pushed the PA-99 branch 2 times, most recently from 863b8b1 to 77b5e72 Compare May 23, 2019 19:59
Also resoved eslint warnings
@simongranger simongranger merged commit c34cd90 into YOU-i-Labs:master May 24, 2019
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.

2 participants