-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
eea4239
to
592020c
Compare
There was a problem hiding this 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
lib/basedevice.js
Outdated
@@ -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); |
There was a problem hiding this comment.
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.
lib/basedevice.js
Outdated
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); |
There was a problem hiding this comment.
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)')) { |
There was a problem hiding this comment.
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();
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.)
863b8b1
to
77b5e72
Compare
Also resoved eslint warnings
No description provided.