-
-
Notifications
You must be signed in to change notification settings - Fork 197
Fix doctor command for android and adb #1170
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
Conversation
public getPathToAdbFromAndroidHome(): IFuture<string> { | ||
return (() => { | ||
if(this.androidHome) { | ||
let pathToAdb = path.join(this.androidHome, "platform-tools", "adb") + (this.$hostInfo.isWindows ? ".exe" : ""); |
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.
Do you really need to take care of the .exe suffix? It should work without it.
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.
Not sure if it works without, it but it works with .exe and CI is green :) 💯
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.
yep, I do not need this, I'll remove it (I've added it for debugging purposes and I forgot to remove it).
80044b5
to
349082c
Compare
👍 |
Fix doctor command, which checks adb and android incorrectly. Pass correct paths for verification. Also make sure "No issues were detected" is printed when there are no issues.
Add SysInfo class that extends the base SysInfoBase class by calling `getSysInfo` method with correct paths to android and adb. Remove check for java, as javac check is enough for us.
349082c
to
b150659
Compare
Test PASSed. |
Do not forget to squash, 👍 |
…and-again Fix doctor command for android and adb
Fix doctor command, which checks adb and android incorrectly. Pass correct paths for verification.
Also make sure "No issues were detected" is printed when there are no issues.